/*
 * Copyright 2018 Dash Core Group
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/* ----------------------------------------------------------------------------
 * This file was generated by SWIG (http://www.swig.org).
 * Version 3.0.12
 *
 * This file is not intended to be easily readable and contains a number of
 * coding conventions designed to improve portability and efficiency. Do not make
 * changes to this file unless you know what you are doing--modify the SWIG
 * interface file instead.
 *
 *  Hash Engineering Solutions
 *
 * ----------------------------------------------------------------------------- */


#ifndef SWIGJAVA
#define SWIGJAVA
#endif



#ifdef __cplusplus
/* SwigValueWrapper is described in swig.swg */
template<typename T> class SwigValueWrapper {
  struct SwigMovePointer {
    T *ptr;
    SwigMovePointer(T *p) : ptr(p) { }
    ~SwigMovePointer() { delete ptr; }
    SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
  } pointer;
  SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
  SwigValueWrapper(const SwigValueWrapper<T>& rhs);
public:
  SwigValueWrapper() : pointer(0) { }
  SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
  operator T&() const { return *pointer.ptr; }
  T *operator&() { return pointer.ptr; }
};

template <typename T> T SwigValueInit() {
  return T();
}
#endif

/* -----------------------------------------------------------------------------
 *  This section contains generic SWIG labels for method/variable
 *  declarations/attributes, and other compiler dependent labels.
 * ----------------------------------------------------------------------------- */

/* template workaround for compilers that cannot correctly implement the C++ standard */
#ifndef SWIGTEMPLATEDISAMBIGUATOR
# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
#  define SWIGTEMPLATEDISAMBIGUATOR template
# elif defined(__HP_aCC)
/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
#  define SWIGTEMPLATEDISAMBIGUATOR template
# else
#  define SWIGTEMPLATEDISAMBIGUATOR
# endif
#endif

/* inline attribute */
#ifndef SWIGINLINE
# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
#   define SWIGINLINE inline
# else
#   define SWIGINLINE
# endif
#endif

/* attribute recognised by some compilers to avoid 'unused' warnings */
#ifndef SWIGUNUSED
# if defined(__GNUC__)
#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
#     define SWIGUNUSED __attribute__ ((__unused__))
#   else
#     define SWIGUNUSED
#   endif
# elif defined(__ICC)
#   define SWIGUNUSED __attribute__ ((__unused__))
# else
#   define SWIGUNUSED
# endif
#endif

#ifndef SWIG_MSC_UNSUPPRESS_4505
# if defined(_MSC_VER)
#   pragma warning(disable : 4505) /* unreferenced local function has been removed */
# endif
#endif

#ifndef SWIGUNUSEDPARM
# ifdef __cplusplus
#   define SWIGUNUSEDPARM(p)
# else
#   define SWIGUNUSEDPARM(p) p SWIGUNUSED
# endif
#endif

/* internal SWIG method */
#ifndef SWIGINTERN
# define SWIGINTERN static SWIGUNUSED
#endif

/* internal inline SWIG method */
#ifndef SWIGINTERNINLINE
# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
#endif

/* exporting methods */
#if defined(__GNUC__)
#  if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
#    ifndef GCC_HASCLASSVISIBILITY
#      define GCC_HASCLASSVISIBILITY
#    endif
#  endif
#endif

#ifndef SWIGEXPORT
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
#   if defined(STATIC_LINKED)
#     define SWIGEXPORT
#   else
#     define SWIGEXPORT __declspec(dllexport)
#   endif
# else
#   if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
#     define SWIGEXPORT __attribute__ ((visibility("default")))
#   else
#     define SWIGEXPORT
#   endif
# endif
#endif

/* calling conventions for Windows */
#ifndef SWIGSTDCALL
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
#   define SWIGSTDCALL __stdcall
# else
#   define SWIGSTDCALL
# endif
#endif

/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
# define _CRT_SECURE_NO_DEPRECATE
#endif

/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
# define _SCL_SECURE_NO_DEPRECATE
#endif

/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
#endif

/* Intel's compiler complains if a variable which was never initialised is
 * cast to void, which is a common idiom which we use to indicate that we
 * are aware a variable isn't used.  So we just silence that warning.
 * See: https://github.com/swig/swig/issues/192 for more discussion.
 */
#ifdef __INTEL_COMPILER
# pragma warning disable 592
#endif


/* Fix for jlong on some versions of gcc on Windows */
#if defined(__GNUC__) && !defined(__INTEL_COMPILER)
  typedef long long __int64;
#endif

/* Fix for jlong on 64-bit x86 Solaris */
#if defined(__x86_64)
# ifdef _LP64
#   undef _LP64
# endif
#endif

#include <jni.h>
#include <stdlib.h>
#include <string.h>


/* Support for throwing Java exceptions */
typedef enum {
  SWIG_JavaOutOfMemoryError = 1, 
  SWIG_JavaIOException, 
  SWIG_JavaRuntimeException, 
  SWIG_JavaIndexOutOfBoundsException,
  SWIG_JavaArithmeticException,
  SWIG_JavaIllegalArgumentException,
  SWIG_JavaNullPointerException,
  SWIG_JavaDirectorPureVirtual,
  SWIG_JavaUnknownError
} SWIG_JavaExceptionCodes;

typedef struct {
  SWIG_JavaExceptionCodes code;
  const char *java_exception;
} SWIG_JavaExceptions_t;


static void SWIGUNUSED SWIG_JavaThrowException(JNIEnv *jenv, SWIG_JavaExceptionCodes code, const char *msg) {
  jclass excep;
  static const SWIG_JavaExceptions_t java_exceptions[] = {
    { SWIG_JavaOutOfMemoryError, "java/lang/OutOfMemoryError" },
    { SWIG_JavaIOException, "java/io/IOException" },
    { SWIG_JavaRuntimeException, "java/lang/RuntimeException" },
    { SWIG_JavaIndexOutOfBoundsException, "java/lang/IndexOutOfBoundsException" },
    { SWIG_JavaArithmeticException, "java/lang/ArithmeticException" },
    { SWIG_JavaIllegalArgumentException, "java/lang/IllegalArgumentException" },
    { SWIG_JavaNullPointerException, "java/lang/NullPointerException" },
    { SWIG_JavaDirectorPureVirtual, "java/lang/RuntimeException" },
    { SWIG_JavaUnknownError,  "java/lang/UnknownError" },
    { (SWIG_JavaExceptionCodes)0,  "java/lang/UnknownError" }
  };
  const SWIG_JavaExceptions_t *except_ptr = java_exceptions;

  while (except_ptr->code != code && except_ptr->code)
    except_ptr++;

  jenv->ExceptionClear();
  excep = jenv->FindClass(except_ptr->java_exception);
  if (excep)
    jenv->ThrowNew(excep, msg);
}


/* Contract support */

#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, msg); return nullreturn; } else


#include "bls-signatures/src/bls.hpp"
#include "bls-signatures/src/chaincode.hpp"
#include "bls-signatures/src/extendedprivatekey.hpp"
#include "bls-signatures/src/extendedpublickey.hpp"
#include "bls-signatures/src/privatekey.hpp"
#include "bls-signatures/src/publickey.hpp"
#include "bls-signatures/src/signature.hpp"
#include "bls-signatures/src/aggregationinfo.hpp"
using namespace bls; //this fixes many undefined symbols


#include <vector>
#include <stdexcept>


#include <stdint.h>		// Use the C99 official header


#include <typeinfo>
#include <stdexcept>

SWIGINTERN std::vector< bls::PublicKey >::const_reference std_vector_Sl_bls_PublicKey_Sg__get(std::vector< bls::PublicKey > const *self,int i){
                return self->at(i);
            }
SWIGINTERN std::vector< bls::PublicKey >::value_type std_vector_Sl_bls_PublicKey_Sg__set(std::vector< bls::PublicKey > *self,int i,std::vector< bls::PublicKey >::value_type &VECTOR_VALUE_IN){
                const bls::PublicKey old = self->at(i);
                self->at(i) = VECTOR_VALUE_IN;
                return old;
            }
SWIGINTERN int32_t std_vector_Sl_bls_PublicKey_Sg__size(std::vector< bls::PublicKey > const *self){
              return self->size();
            }
SWIGINTERN void std_vector_Sl_bls_PublicKey_Sg__removeRange(std::vector< bls::PublicKey > *self,int32_t from,int32_t to){
              self->erase(self->begin()+from, self->begin()+to);
            }
SWIGINTERN std::vector< bls::PrivateKey >::const_reference std_vector_Sl_bls_PrivateKey_Sg__get(std::vector< bls::PrivateKey > const *self,int i){
                return self->at(i);
            }
SWIGINTERN std::vector< bls::PrivateKey >::value_type std_vector_Sl_bls_PrivateKey_Sg__set(std::vector< bls::PrivateKey > *self,int i,std::vector< bls::PrivateKey >::value_type &VECTOR_VALUE_IN){
                const bls::PrivateKey old = self->at(i);
                self->at(i) = VECTOR_VALUE_IN;
                return old;
            }
SWIGINTERN int32_t std_vector_Sl_bls_PrivateKey_Sg__size(std::vector< bls::PrivateKey > const *self){
              return self->size();
            }
SWIGINTERN void std_vector_Sl_bls_PrivateKey_Sg__removeRange(std::vector< bls::PrivateKey > *self,int32_t from,int32_t to){
              self->erase(self->begin()+from, self->begin()+to);
            }
SWIGINTERN std::vector< unsigned char * >::const_reference std_vector_Sl_uint8_t_Sm__Sg__get(std::vector< uint8_t * > const *self,int i){
                return self->at(i);
            }
SWIGINTERN std::vector< unsigned char * >::value_type std_vector_Sl_uint8_t_Sm__Sg__set(std::vector< uint8_t * > *self,int i,std::vector< unsigned char * >::value_type &VECTOR_VALUE_IN){
                unsigned char * old = self->at(i);
                self->at(i) = VECTOR_VALUE_IN;
                return old;
            }
SWIGINTERN int32_t std_vector_Sl_uint8_t_Sm__Sg__size(std::vector< uint8_t * > const *self){
              return self->size();
            }
SWIGINTERN void std_vector_Sl_uint8_t_Sm__Sg__removeRange(std::vector< uint8_t * > *self,int32_t from,int32_t to){
              self->erase(self->begin()+from, self->begin()+to);
            }
SWIGINTERN std::vector< bn_t * >::const_reference std_vector_Sl_bn_t_Sm__Sg__get(std::vector< bn_t * > const *self,int i){
                return self->at(i);
            }
SWIGINTERN std::vector< bn_t * >::value_type std_vector_Sl_bn_t_Sm__Sg__set(std::vector< bn_t * > *self,int i,std::vector< bn_t * >::value_type &VECTOR_VALUE_IN){
                bn_t * old = self->at(i);
                self->at(i) = VECTOR_VALUE_IN;
                return old;
            }
SWIGINTERN int32_t std_vector_Sl_bn_t_Sm__Sg__size(std::vector< bn_t * > const *self){
              return self->size();
            }
SWIGINTERN void std_vector_Sl_bn_t_Sm__Sg__removeRange(std::vector< bn_t * > *self,int32_t from,int32_t to){
              self->erase(self->begin()+from, self->begin()+to);
            }
SWIGINTERN std::vector< bls::Signature >::const_reference std_vector_Sl_bls_Signature_Sg__get(std::vector< bls::Signature > const *self,int i){
                return self->at(i);
            }
SWIGINTERN std::vector< bls::Signature >::value_type std_vector_Sl_bls_Signature_Sg__set(std::vector< bls::Signature > *self,int i,std::vector< bls::Signature >::value_type const &VECTOR_VALUE_IN){
                const bls::Signature old = self->at(i);
                self->at(i) = VECTOR_VALUE_IN;
                return old;
            }
SWIGINTERN int32_t std_vector_Sl_bls_Signature_Sg__size(std::vector< bls::Signature > const *self){
              return self->size();
            }
SWIGINTERN void std_vector_Sl_bls_Signature_Sg__removeRange(std::vector< bls::Signature > *self,int32_t from,int32_t to){
              self->erase(self->begin()+from, self->begin()+to);
            }

SWIGINTERN std::vector< bls::InsecureSignature >::const_reference std_vector_Sl_bls_InsecureSignature_Sg__get(std::vector< bls::InsecureSignature > const *self,int i){
                return self->at(i);
            }
SWIGINTERN std::vector< bls::InsecureSignature >::value_type std_vector_Sl_bls_InsecureSignature_Sg__set(std::vector< bls::InsecureSignature > *self,int i,std::vector< bls::InsecureSignature >::value_type const &VECTOR_VALUE_IN){
                const bls::InsecureSignature old = self->at(i);
                self->at(i) = VECTOR_VALUE_IN;
                return old;
            }
SWIGINTERN int32_t std_vector_Sl_bls_InsecureSignature_Sg__size(std::vector< bls::InsecureSignature > const *self){
              return self->size();
            }
SWIGINTERN void std_vector_Sl_bls_InsecureSignature_Sg__removeRange(std::vector< bls::InsecureSignature > *self,int32_t from,int32_t to){
              self->erase(self->begin()+from, self->begin()+to);
            }
SWIGINTERN std::vector< bls::AggregationInfo >::const_reference std_vector_Sl_bls_AggregationInfo_Sg__get(std::vector< bls::AggregationInfo > const *self,int i){
                return self->at(i);
            }
SWIGINTERN std::vector< bls::AggregationInfo >::value_type std_vector_Sl_bls_AggregationInfo_Sg__set(std::vector< bls::AggregationInfo > *self,int i,std::vector< bls::AggregationInfo >::value_type const &VECTOR_VALUE_IN){
                const bls::AggregationInfo old = self->at(i);
                self->at(i) = VECTOR_VALUE_IN;
                return old;
            }
SWIGINTERN int32_t std_vector_Sl_bls_AggregationInfo_Sg__size(std::vector< bls::AggregationInfo > const *self){
              return self->size();
            }
SWIGINTERN void std_vector_Sl_bls_AggregationInfo_Sg__removeRange(std::vector< bls::AggregationInfo > *self,int32_t from,int32_t to){
              self->erase(self->begin()+from, self->begin()+to);
            }

#ifdef __cplusplus
extern "C" {
#endif

SWIGEXPORT jstring JNICALL Java_org_dashj_bls_JNI_BLS_1GROUP_1ORDER_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *)(char *)bls::BLS::GROUP_ORDER;
  if (result) jresult = jenv->NewStringUTF((const char *)result);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_BLS_1MESSAGE_1HASH_1LEN_1get(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  size_t result;
  
  (void)jenv;
  (void)jcls;
  result = bls::BLS::MESSAGE_HASH_LEN;
  jresult = (jlong)result; 
  return jresult;
}


SWIGEXPORT jboolean JNICALL Java_org_dashj_bls_JNI_BLS_1Init(JNIEnv *jenv, jclass jcls) {
  jboolean jresult = 0 ;
  bool result;
  
  (void)jenv;
  (void)jcls;
  result = (bool)bls::BLS::Init();
  jresult = (jboolean)result; 
  return jresult;
}
#ifdef BUILD_DASH_CORE
SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_BLS_1ID_1SIZE_1get(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  size_t result;
  
  (void)jenv;
  (void)jcls;
  result = bls::BLS::ID_SIZE;
  jresult = (jlong)result; 
  return jresult;
}


SWIGEXPORT void JNICALL JJava_org_dashj_bls_JNI_BLS_1AssertInitialized(JNIEnv *jenv, jclass jcls) {
  (void)jenv;
  (void)jcls;
  bls::BLS::AssertInitialized();
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_BLS_1Clean(JNIEnv *jenv, jclass jcls) {
  (void)jenv;
  (void)jcls;
  bls::BLS::Clean();
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_BLS_1SetSecureAllocator(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  Util::SecureAllocCallback arg1 ;
  Util::SecureFreeCallback arg2 ;
  Util::SecureAllocCallback *argp1 ;
  Util::SecureFreeCallback *argp2 ;
  
  (void)jenv;
  (void)jcls;
  argp1 = *(Util::SecureAllocCallback **)&jarg1; 
  if (!argp1) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Util::SecureAllocCallback");
    return ;
  }
  arg1 = *argp1; 
  argp2 = *(Util::SecureFreeCallback **)&jarg2; 
  if (!argp2) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Util::SecureFreeCallback");
    return ;
  }
  arg2 = *argp2; 
  bls::BLS::SetSecureAllocator(arg1,arg2);
}
#endif

SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_BLS_1HashPubKeys(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jobject jarg3_, jlong jarg4) {
  bn_t *arg1 = (bn_t *) 0 ;
  size_t arg2 ;
  std::vector< uint8_t * > *arg3 = 0 ;
  std::vector< size_t > *arg4 = 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg3_;
  arg1 = *(bn_t **)&jarg1; 
  arg2 = (size_t)jarg2; 
  arg3 = *(std::vector< uint8_t * > **)&jarg3;
  if (!arg3) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< uint8_t * > const & reference is null");
    return ;
  } 
  arg4 = *(std::vector< size_t > **)&jarg4;
  if (!arg4) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< size_t > const & reference is null");
    return ;
  } 
  bls::BLS::HashPubKeys(arg1,arg2,(std::vector< unsigned char * > const &)*arg3,(std::vector< size_t > const &)*arg4);
}

#ifdef BUILD_DASH_CORE
SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_BLS_1PrivateKeyShare(JNIEnv *jenv, jclass jcls, jlong jarg1, jbyteArray jarg2) {
  jlong jresult = 0 ;
  std::vector< PrivateKey > *arg1 = 0 ;
  uint8_t *arg2 = (uint8_t *) 0 ;
  PrivateKey result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(std::vector< PrivateKey > **)&jarg1;
  if (!arg1) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< PrivateKey > const & reference is null");
    return 0;
  } 
  {
    arg2 = (uint8_t *) jenv->GetByteArrayElements(jarg2, 0);
  }
  result = bls::BLS::PrivateKeyShare((std::vector< PrivateKey > const &)*arg1,(unsigned char const *)arg2);
  *(PrivateKey **)&jresult = new PrivateKey((const PrivateKey &)result); 
  {
    jenv->ReleaseByteArrayElements(jarg2, (jbyte *) arg2, 0);
  }
  
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_BLS_1RecoverPrivateKey(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jlong jresult = 0 ;
  std::vector< PrivateKey > *arg1 = 0 ;
  std::vector< uint8_t const * > *arg2 = 0 ;
  PrivateKey result;

  (void)jenv;
  (void)jcls;
  arg1 = *(std::vector< PrivateKey > **)&jarg1;
  if (!arg1) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< PrivateKey > const & reference is null");
    return 0;
  }
  arg2 = *(std::vector< uint8_t const * > **)&jarg2;
  if (!arg2) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< uint8_t const * > const & reference is null");
    return 0;
  }
  result = bls::BLS::RecoverPrivateKey((std::vector< PrivateKey > const &)*arg1,(std::vector< unsigned char const * > const &)*arg2);
  *(PrivateKey **)&jresult = new PrivateKey((const PrivateKey &)result);
  return jresult;
}

SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_BLS_1PublicKeyShare(JNIEnv *jenv, jclass jcls, jlong jarg1, jbyteArray jarg2) {
  jlong jresult = 0 ;
  std::vector< PrivateKey > *arg1 = 0 ;
  uint8_t *arg2 = (uint8_t *) 0 ;
  PrivateKey result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(std::vector< PrivateKey > **)&jarg1;
  if (!arg1) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< PrivateKey > const & reference is null");
    return 0;
  } 
  {
    arg2 = (uint8_t *) jenv->GetByteArrayElements(jarg2, 0);
  }
  result = bls::BLS::PrivateKeyShare((std::vector< PrivateKey > const &)*arg1,(unsigned char const *)arg2);
  *(PrivateKey **)&jresult = new PrivateKey((const PrivateKey &)result); 
  {
    jenv->ReleaseByteArrayElements(jarg2, (jbyte *) arg2, 0);
  }
  
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_BLS_1RecoverPublicKey(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jlong jresult = 0 ;
  std::vector< PublicKey > *arg1 = 0 ;
  std::vector< uint8_t const * > *arg2 = 0 ;
  PublicKey result;

  (void)jenv;
  (void)jcls;
  arg1 = *(std::vector< PublicKey > **)&jarg1;
  if (!arg1) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< PublicKey > const & reference is null");
    return 0;
  }
  arg2 = *(std::vector< uint8_t const * > **)&jarg2;
  if (!arg2) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< uint8_t const * > const & reference is null");
    return 0;
  }
  result = bls::BLS::RecoverPublicKey((std::vector< PublicKey > const &)*arg1,(std::vector< unsigned char const * > const &)*arg2);
  *(PublicKey **)&jresult = new PublicKey((const PublicKey &)result);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_BLS_1SignatureShare(JNIEnv *jenv, jclass jcls, jlong jarg1, jbyteArray jarg2) {
  jlong jresult = 0 ;
  std::vector< InsecureSignature > *arg1 = 0 ;
  uint8_t *arg2 = (uint8_t *) 0 ;
  InsecureSignature result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(std::vector< InsecureSignature > **)&jarg1;
  if (!arg1) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< InsecureSignature > const & reference is null");
    return 0;
  } 
  {
    arg2 = (uint8_t *) jenv->GetByteArrayElements(jarg2, 0);
  }
  result = bls::BLS::SignatureShare((std::vector< InsecureSignature > const &)*arg1,(unsigned char const *)arg2);
  *(InsecureSignature **)&jresult = new InsecureSignature((const InsecureSignature &)result); 
  {
    jenv->ReleaseByteArrayElements(jarg2, (jbyte *) arg2, 0);
  }
  
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_BLS_1RecoverSig(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jlong jresult = 0 ;
  std::vector< InsecureSignature > *arg1 = 0 ;
  std::vector< uint8_t const * > *arg2 = 0 ;
  InsecureSignature result;

  (void)jenv;
  (void)jcls;
  arg1 = *(std::vector< InsecureSignature > **)&jarg1;
  if (!arg1) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< InsecureSignature > const & reference is null");
    return 0;
  }
  arg2 = *(std::vector< uint8_t const * > **)&jarg2;
  if (!arg2) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< uint8_t const * > const & reference is null");
    return 0;
  }
  result = bls::BLS::RecoverSig((std::vector< InsecureSignature > const &)*arg1,(std::vector< unsigned char const * > const &)*arg2);
  *(InsecureSignature **)&jresult = new InsecureSignature((const InsecureSignature &)result);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_BLS_1DHKeyExchange(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jlong jresult = 0 ;
  PrivateKey *arg1 = 0 ;
  PublicKey *arg2 = 0 ;
  PublicKey result;

  (void)jenv;
  (void)jcls;
  arg1 = *(PrivateKey **)&jarg1;
  if (!arg1) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "PrivateKey const & reference is null");
    return 0;
  }
  arg2 = *(PublicKey **)&jarg2;
  if (!arg2) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "PublicKey const & reference is null");
    return 0;
  }
  result = bls::BLS::DHKeyExchange((PrivateKey const &)*arg1,(PublicKey const &)*arg2);
  *(PublicKey **)&jresult = new PublicKey((const PublicKey &)result);
  return jresult;
}
#endif

SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_BLS_1CheckRelicErrors(JNIEnv *jenv, jclass jcls) {
  (void)jenv;
  (void)jcls;
  bls::BLS::CheckRelicErrors();
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_new_1BLS(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  bls::BLS *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (bls::BLS *)new bls::BLS();
  *(bls::BLS **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_delete_1BLS(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  bls::BLS *arg1 = (bls::BLS *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(bls::BLS **)&jarg1; 
  delete arg1;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_ChainCode_1CHAIN_1CODE_1SIZE_1get(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  size_t result;
  
  (void)jenv;
  (void)jcls;
  result = bls::ChainCode::CHAIN_CODE_SIZE;
  jresult = (jlong)result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_ChainCode_1FromBytes(JNIEnv *jenv, jclass jcls, jbyteArray jarg1) {
  jlong jresult = 0 ;
  uint8_t *arg1 = (uint8_t *) 0 ;
  SwigValueWrapper< bls::ChainCode > result;
  
  (void)jenv;
  (void)jcls;
  {
    arg1 = (uint8_t *) jenv->GetByteArrayElements(jarg1, 0);
  }
  result = bls::ChainCode::FromBytes((unsigned char const *)arg1);
  *(bls::ChainCode **)&jresult = new bls::ChainCode((const bls::ChainCode &)result); 
  {
    jenv->ReleaseByteArrayElements(jarg1, (jbyte *) arg1, 0);
  }
  
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_new_1ChainCode(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  bls::ChainCode *arg1 = 0 ;
  bls::ChainCode *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::ChainCode **)&jarg1;
  if (!arg1) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "bls::ChainCode const & reference is null");
    return 0;
  } 
  result = (bls::ChainCode *)new bls::ChainCode((bls::ChainCode const &)*arg1);
  *(bls::ChainCode **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_ChainCode_1Serialize_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2) {
  bls::ChainCode *arg1 = (bls::ChainCode *) 0 ;
  uint8_t *arg2 = (uint8_t *) 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::ChainCode **)&jarg1; 
  {
    arg2 = (uint8_t *) jenv->GetByteArrayElements(jarg2, 0);
  }
  ((bls::ChainCode const *)arg1)->Serialize(arg2);
  {
    jenv->ReleaseByteArrayElements(jarg2, (jbyte *) arg2, 0);
  }
  
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_ChainCode_1Serialize_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  bls::ChainCode *arg1 = (bls::ChainCode *) 0 ;
  SwigValueWrapper< std::vector< unsigned char > > result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::ChainCode **)&jarg1; 
  result = ((bls::ChainCode const *)arg1)->Serialize();
  *(std::vector< uint8_t > **)&jresult = new std::vector< uint8_t >((const std::vector< uint8_t > &)result); 
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_delete_1ChainCode(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  bls::ChainCode *arg1 = (bls::ChainCode *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(bls::ChainCode **)&jarg1; 
  delete arg1;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_ExtendedPrivateKey_1EXTENDED_1PRIVATE_1KEY_1SIZE_1get(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  unsigned int result;
  
  (void)jenv;
  (void)jcls;
  result = (unsigned int)bls::ExtendedPrivateKey::EXTENDED_PRIVATE_KEY_SIZE;
  jresult = (jlong)result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_ExtendedPrivateKey_1FromSeed(JNIEnv *jenv, jclass jcls, jbyteArray jarg1, jlong jarg2) {
  jlong jresult = 0 ;
  uint8_t *arg1 = (uint8_t *) 0 ;
  size_t arg2 ;
  SwigValueWrapper< bls::ExtendedPrivateKey > result;
  
  (void)jenv;
  (void)jcls;
  {
    arg1 = (uint8_t *) jenv->GetByteArrayElements(jarg1, 0);
  }
  arg2 = (size_t)jarg2; 
  result = bls::ExtendedPrivateKey::FromSeed((unsigned char const *)arg1,arg2);
  *(bls::ExtendedPrivateKey **)&jresult = new bls::ExtendedPrivateKey((const bls::ExtendedPrivateKey &)result); 
  {
    jenv->ReleaseByteArrayElements(jarg1, (jbyte *) arg1, 0);
  }
  
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_ExtendedPrivateKey_1FromBytes(JNIEnv *jenv, jclass jcls, jbyteArray jarg1) {
  jlong jresult = 0 ;
  uint8_t *arg1 = (uint8_t *) 0 ;
  SwigValueWrapper< bls::ExtendedPrivateKey > result;
  
  (void)jenv;
  (void)jcls;
  {
    arg1 = (uint8_t *) jenv->GetByteArrayElements(jarg1, 0);
  }
  result = bls::ExtendedPrivateKey::FromBytes((unsigned char const *)arg1);
  *(bls::ExtendedPrivateKey **)&jresult = new bls::ExtendedPrivateKey((const bls::ExtendedPrivateKey &)result); 
  {
    jenv->ReleaseByteArrayElements(jarg1, (jbyte *) arg1, 0);
  }
  
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_ExtendedPrivateKey_1PrivateChild(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
  jlong jresult = 0 ;
  bls::ExtendedPrivateKey *arg1 = (bls::ExtendedPrivateKey *) 0 ;
  uint32_t arg2 ;
  SwigValueWrapper< bls::ExtendedPrivateKey > result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::ExtendedPrivateKey **)&jarg1; 
  arg2 = (uint32_t)jarg2; 
  result = ((bls::ExtendedPrivateKey const *)arg1)->PrivateChild(arg2);
  *(bls::ExtendedPrivateKey **)&jresult = new bls::ExtendedPrivateKey((const bls::ExtendedPrivateKey &)result); 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_ExtendedPrivateKey_1PublicChild(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
  jlong jresult = 0 ;
  bls::ExtendedPrivateKey *arg1 = (bls::ExtendedPrivateKey *) 0 ;
  uint32_t arg2 ;
  SwigValueWrapper< bls::ExtendedPublicKey > result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::ExtendedPrivateKey **)&jarg1; 
  arg2 = (uint32_t)jarg2; 
  result = ((bls::ExtendedPrivateKey const *)arg1)->PublicChild(arg2);
  *(ExtendedPublicKey **)&jresult = new ExtendedPublicKey((const ExtendedPublicKey &)result); 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_ExtendedPrivateKey_1GetVersion(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  bls::ExtendedPrivateKey *arg1 = (bls::ExtendedPrivateKey *) 0 ;
  uint32_t result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::ExtendedPrivateKey **)&jarg1; 
  result = (uint32_t)((bls::ExtendedPrivateKey const *)arg1)->GetVersion();
  jresult = (jlong)result; 
  return jresult;
}


SWIGEXPORT jshort JNICALL Java_org_dashj_bls_JNI_ExtendedPrivateKey_1GetDepth(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jshort jresult = 0 ;
  bls::ExtendedPrivateKey *arg1 = (bls::ExtendedPrivateKey *) 0 ;
  uint8_t result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::ExtendedPrivateKey **)&jarg1; 
  result = (uint8_t)((bls::ExtendedPrivateKey const *)arg1)->GetDepth();
  jresult = (jshort)result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_ExtendedPrivateKey_1GetParentFingerprint(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  bls::ExtendedPrivateKey *arg1 = (bls::ExtendedPrivateKey *) 0 ;
  uint32_t result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::ExtendedPrivateKey **)&jarg1; 
  result = (uint32_t)((bls::ExtendedPrivateKey const *)arg1)->GetParentFingerprint();
  jresult = (jlong)result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_ExtendedPrivateKey_1GetChildNumber(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  bls::ExtendedPrivateKey *arg1 = (bls::ExtendedPrivateKey *) 0 ;
  uint32_t result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::ExtendedPrivateKey **)&jarg1; 
  result = (uint32_t)((bls::ExtendedPrivateKey const *)arg1)->GetChildNumber();
  jresult = (jlong)result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_ExtendedPrivateKey_1GetChainCode(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  bls::ExtendedPrivateKey *arg1 = (bls::ExtendedPrivateKey *) 0 ;
  SwigValueWrapper< bls::ChainCode > result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::ExtendedPrivateKey **)&jarg1; 
  result = ((bls::ExtendedPrivateKey const *)arg1)->GetChainCode();
  *(bls::ChainCode **)&jresult = new bls::ChainCode((const bls::ChainCode &)result); 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_ExtendedPrivateKey_1GetPrivateKey(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  bls::ExtendedPrivateKey *arg1 = (bls::ExtendedPrivateKey *) 0 ;
  SwigValueWrapper< bls::PrivateKey > result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::ExtendedPrivateKey **)&jarg1; 
  result = ((bls::ExtendedPrivateKey const *)arg1)->GetPrivateKey();
  *(PrivateKey **)&jresult = new PrivateKey((const PrivateKey &)result); 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_ExtendedPrivateKey_1GetPublicKey(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  bls::ExtendedPrivateKey *arg1 = (bls::ExtendedPrivateKey *) 0 ;
  SwigValueWrapper< bls::PublicKey > result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::ExtendedPrivateKey **)&jarg1; 
  result = ((bls::ExtendedPrivateKey const *)arg1)->GetPublicKey();
  *(PublicKey **)&jresult = new PublicKey((const PublicKey &)result); 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_ExtendedPrivateKey_1GetExtendedPublicKey(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  bls::ExtendedPrivateKey *arg1 = (bls::ExtendedPrivateKey *) 0 ;
  SwigValueWrapper< bls::ExtendedPublicKey > result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::ExtendedPrivateKey **)&jarg1; 
  result = ((bls::ExtendedPrivateKey const *)arg1)->GetExtendedPublicKey();
  *(ExtendedPublicKey **)&jresult = new ExtendedPublicKey((const ExtendedPublicKey &)result); 
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_ExtendedPrivateKey_1Serialize_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2) {
  bls::ExtendedPrivateKey *arg1 = (bls::ExtendedPrivateKey *) 0 ;
  uint8_t *arg2 = (uint8_t *) 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::ExtendedPrivateKey **)&jarg1; 
  {
    arg2 = (uint8_t *) jenv->GetByteArrayElements(jarg2, 0);
  }
  ((bls::ExtendedPrivateKey const *)arg1)->Serialize(arg2);
  {
    jenv->ReleaseByteArrayElements(jarg2, (jbyte *) arg2, 0);
  }
  
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_ExtendedPrivateKey_1Serialize_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  bls::ExtendedPrivateKey *arg1 = (bls::ExtendedPrivateKey *) 0 ;
  SwigValueWrapper< std::vector< unsigned char > > result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::ExtendedPrivateKey **)&jarg1; 
  result = ((bls::ExtendedPrivateKey const *)arg1)->Serialize();
  *(std::vector< uint8_t > **)&jresult = new std::vector< uint8_t >((const std::vector< uint8_t > &)result); 
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_delete_1ExtendedPrivateKey(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  bls::ExtendedPrivateKey *arg1 = (bls::ExtendedPrivateKey *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(bls::ExtendedPrivateKey **)&jarg1; 
  delete arg1;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_ExtendedPublicKey_1VERSION_1get(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  unsigned int result;
  
  (void)jenv;
  (void)jcls;
  result = (unsigned int)bls::ExtendedPublicKey::VERSION;
  jresult = (jlong)result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_ExtendedPublicKey_1EXTENDED_1PUBLIC_1KEY_1SIZE_1get(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  unsigned int result;
  
  (void)jenv;
  (void)jcls;
  result = (unsigned int)bls::ExtendedPublicKey::EXTENDED_PUBLIC_KEY_SIZE;
  jresult = (jlong)result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_ExtendedPublicKey_1FromBytes(JNIEnv *jenv, jclass jcls, jbyteArray jarg1) {
  jlong jresult = 0 ;
  uint8_t *arg1 = (uint8_t *) 0 ;
  SwigValueWrapper< bls::ExtendedPublicKey > result;
  
  (void)jenv;
  (void)jcls;
  {
    arg1 = (uint8_t *) jenv->GetByteArrayElements(jarg1, 0);
  }
  result = bls::ExtendedPublicKey::FromBytes((unsigned char const *)arg1);
  *(bls::ExtendedPublicKey **)&jresult = new bls::ExtendedPublicKey((const bls::ExtendedPublicKey &)result); 
  {
    jenv->ReleaseByteArrayElements(jarg1, (jbyte *) arg1, 0);
  }
  
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_ExtendedPublicKey_1PublicChild(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
  jlong jresult = 0 ;
  bls::ExtendedPublicKey *arg1 = (bls::ExtendedPublicKey *) 0 ;
  uint32_t arg2 ;
  SwigValueWrapper< bls::ExtendedPublicKey > result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::ExtendedPublicKey **)&jarg1; 
  arg2 = (uint32_t)jarg2; 
  result = ((bls::ExtendedPublicKey const *)arg1)->PublicChild(arg2);
  *(bls::ExtendedPublicKey **)&jresult = new bls::ExtendedPublicKey((const bls::ExtendedPublicKey &)result); 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_ExtendedPublicKey_1GetVersion(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  bls::ExtendedPublicKey *arg1 = (bls::ExtendedPublicKey *) 0 ;
  uint32_t result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::ExtendedPublicKey **)&jarg1; 
  result = (uint32_t)((bls::ExtendedPublicKey const *)arg1)->GetVersion();
  jresult = (jlong)result; 
  return jresult;
}


SWIGEXPORT jshort JNICALL Java_org_dashj_bls_JNI_ExtendedPublicKey_1GetDepth(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jshort jresult = 0 ;
  bls::ExtendedPublicKey *arg1 = (bls::ExtendedPublicKey *) 0 ;
  uint8_t result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::ExtendedPublicKey **)&jarg1; 
  result = (uint8_t)((bls::ExtendedPublicKey const *)arg1)->GetDepth();
  jresult = (jshort)result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_ExtendedPublicKey_1GetParentFingerprint(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  bls::ExtendedPublicKey *arg1 = (bls::ExtendedPublicKey *) 0 ;
  uint32_t result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::ExtendedPublicKey **)&jarg1; 
  result = (uint32_t)((bls::ExtendedPublicKey const *)arg1)->GetParentFingerprint();
  jresult = (jlong)result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_ExtendedPublicKey_1GetChildNumber(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  bls::ExtendedPublicKey *arg1 = (bls::ExtendedPublicKey *) 0 ;
  uint32_t result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::ExtendedPublicKey **)&jarg1; 
  result = (uint32_t)((bls::ExtendedPublicKey const *)arg1)->GetChildNumber();
  jresult = (jlong)result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_ExtendedPublicKey_1GetChainCode(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  bls::ExtendedPublicKey *arg1 = (bls::ExtendedPublicKey *) 0 ;
  SwigValueWrapper< bls::ChainCode > result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::ExtendedPublicKey **)&jarg1; 
  result = ((bls::ExtendedPublicKey const *)arg1)->GetChainCode();
  *(bls::ChainCode **)&jresult = new bls::ChainCode((const bls::ChainCode &)result); 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_ExtendedPublicKey_1GetPublicKey(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  bls::ExtendedPublicKey *arg1 = (bls::ExtendedPublicKey *) 0 ;
  SwigValueWrapper< bls::PublicKey > result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::ExtendedPublicKey **)&jarg1; 
  result = ((bls::ExtendedPublicKey const *)arg1)->GetPublicKey();
  *(PublicKey **)&jresult = new PublicKey((const PublicKey &)result); 
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_ExtendedPublicKey_1Serialize_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2) {
  bls::ExtendedPublicKey *arg1 = (bls::ExtendedPublicKey *) 0 ;
  uint8_t *arg2 = (uint8_t *) 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::ExtendedPublicKey **)&jarg1; 
  {
    arg2 = (uint8_t *) jenv->GetByteArrayElements(jarg2, 0);
  }
  ((bls::ExtendedPublicKey const *)arg1)->Serialize(arg2);
  {
    jenv->ReleaseByteArrayElements(jarg2, (jbyte *) arg2, 0);
  }
  
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_ExtendedPublicKey_1Serialize_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  bls::ExtendedPublicKey *arg1 = (bls::ExtendedPublicKey *) 0 ;
  SwigValueWrapper< std::vector< unsigned char > > result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::ExtendedPublicKey **)&jarg1; 
  result = ((bls::ExtendedPublicKey const *)arg1)->Serialize();
  *(std::vector< uint8_t > **)&jresult = new std::vector< uint8_t >((const std::vector< uint8_t > &)result); 
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_delete_1ExtendedPublicKey(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  bls::ExtendedPublicKey *arg1 = (bls::ExtendedPublicKey *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(bls::ExtendedPublicKey **)&jarg1; 
  delete arg1;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_PrivateKey_1PRIVATE_1KEY_1SIZE_1get(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  size_t result;
  
  (void)jenv;
  (void)jcls;
  result = bls::PrivateKey::PRIVATE_KEY_SIZE;
  jresult = (jlong)result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_PrivateKey_1FromSeed(JNIEnv *jenv, jclass jcls, jbyteArray jarg1, jlong jarg2) {
  jlong jresult = 0 ;
  uint8_t *arg1 = (uint8_t *) 0 ;
  size_t arg2 ;
  SwigValueWrapper< bls::PrivateKey > result;
  
  (void)jenv;
  (void)jcls;
  {
    arg1 = (uint8_t *) jenv->GetByteArrayElements(jarg1, 0);
  }
  arg2 = (size_t)jarg2; 
  result = bls::PrivateKey::FromSeed((unsigned char const *)arg1,arg2);
  *(bls::PrivateKey **)&jresult = new bls::PrivateKey((const bls::PrivateKey &)result); 
  {
    jenv->ReleaseByteArrayElements(jarg1, (jbyte *) arg1, 0);
  }
  
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_PrivateKey_1FromBytes_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jbyteArray jarg1, jboolean jarg2) {
  jlong jresult = 0 ;
  uint8_t *arg1 = (uint8_t *) 0 ;
  bool arg2 ;
  SwigValueWrapper< bls::PrivateKey > result;
  
  (void)jenv;
  (void)jcls;
  {
    arg1 = (uint8_t *) jenv->GetByteArrayElements(jarg1, 0);
  }
  arg2 = jarg2 ? true : false; 
  result = bls::PrivateKey::FromBytes((unsigned char const *)arg1,arg2);
  *(bls::PrivateKey **)&jresult = new bls::PrivateKey((const bls::PrivateKey &)result); 
  {
    jenv->ReleaseByteArrayElements(jarg1, (jbyte *) arg1, 0);
  }
  
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_PrivateKey_1FromBytes_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jbyteArray jarg1) {
  jlong jresult = 0 ;
  uint8_t *arg1 = (uint8_t *) 0 ;
  SwigValueWrapper< bls::PrivateKey > result;
  
  (void)jenv;
  (void)jcls;
  {
    arg1 = (uint8_t *) jenv->GetByteArrayElements(jarg1, 0);
  }
  result = bls::PrivateKey::FromBytes((unsigned char const *)arg1);
  *(bls::PrivateKey **)&jresult = new bls::PrivateKey((const bls::PrivateKey &)result); 
  {
    jenv->ReleaseByteArrayElements(jarg1, (jbyte *) arg1, 0);
  }
  
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_new_1PrivateKey_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  bls::PrivateKey *arg1 = 0 ;
  bls::PrivateKey *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::PrivateKey **)&jarg1;
  if (!arg1) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "bls::PrivateKey const & reference is null");
    return 0;
  } 
  result = (bls::PrivateKey *)new bls::PrivateKey((bls::PrivateKey const &)*arg1);
  *(bls::PrivateKey **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_delete_1PrivateKey(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  bls::PrivateKey *arg1 = (bls::PrivateKey *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(bls::PrivateKey **)&jarg1; 
  delete arg1;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_PrivateKey_1GetPublicKey(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  bls::PrivateKey *arg1 = (bls::PrivateKey *) 0 ;
  SwigValueWrapper< bls::PublicKey > result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::PrivateKey **)&jarg1; 
  result = ((bls::PrivateKey const *)arg1)->GetPublicKey();
  *(PublicKey **)&jresult = new PublicKey((const PublicKey &)result); 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_PrivateKey_1AggregateInsecure(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  std::vector< bls::PrivateKey > *arg1 = 0 ;
  SwigValueWrapper< bls::PrivateKey > result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::PrivateKey > **)&jarg1;
  if (!arg1) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< bls::PrivateKey > const & reference is null");
    return 0;
  } 
  result = bls::PrivateKey::AggregateInsecure((std::vector< bls::PrivateKey > const &)*arg1);
  *(bls::PrivateKey **)&jresult = new bls::PrivateKey((const bls::PrivateKey &)result); 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_PrivateKey_1Aggregate(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
  jlong jresult = 0 ;
  std::vector< bls::PrivateKey > *arg1 = 0 ;
  std::vector< PublicKey > *arg2 = 0 ;
  SwigValueWrapper< bls::PrivateKey > result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::PrivateKey > **)&jarg1;
  if (!arg1) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< bls::PrivateKey > const & reference is null");
    return 0;
  } 
  arg2 = *(std::vector< PublicKey > **)&jarg2;
  if (!arg2) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< PublicKey > const & reference is null");
    return 0;
  } 
  result = bls::PrivateKey::Aggregate((std::vector< bls::PrivateKey > const &)*arg1,(std::vector< PublicKey > const &)*arg2);
  *(bls::PrivateKey **)&jresult = new bls::PrivateKey((const bls::PrivateKey &)result); 
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_PrivateKey_1Serialize_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2) {
  bls::PrivateKey *arg1 = (bls::PrivateKey *) 0 ;
  uint8_t *arg2 = (uint8_t *) 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::PrivateKey **)&jarg1; 
  {
    arg2 = (uint8_t *) jenv->GetByteArrayElements(jarg2, 0);
  }
  ((bls::PrivateKey const *)arg1)->Serialize(arg2);
  {
    jenv->ReleaseByteArrayElements(jarg2, (jbyte *) arg2, 0);
  }
  
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_PrivateKey_1Serialize_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  bls::PrivateKey *arg1 = (bls::PrivateKey *) 0 ;
  SwigValueWrapper< std::vector< unsigned char > > result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::PrivateKey **)&jarg1; 
  result = ((bls::PrivateKey const *)arg1)->Serialize();
  *(std::vector< uint8_t > **)&jresult = new std::vector< uint8_t >((const std::vector< uint8_t > &)result); 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_PrivateKey_1SignInsecure(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
  jlong jresult = 0 ;
  bls::PrivateKey *arg1 = (bls::PrivateKey *) 0 ;
  uint8_t *arg2 = (uint8_t *) 0 ;
  size_t arg3 ;
  SwigValueWrapper< bls::InsecureSignature > result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::PrivateKey **)&jarg1; 
  {
    arg2 = (uint8_t *) jenv->GetByteArrayElements(jarg2, 0);
  }
  arg3 = (size_t)jarg3; 
  result = ((bls::PrivateKey const *)arg1)->SignInsecure((uint8_t const *)arg2,arg3);
  *(InsecureSignature **)&jresult = new InsecureSignature((const InsecureSignature &)result); 
  {
    jenv->ReleaseByteArrayElements(jarg2, (jbyte *) arg2, 0);
  }
  
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_PrivateKey_1SignInsecurePrehashed(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2) {
  jlong jresult = 0 ;
  bls::PrivateKey *arg1 = (bls::PrivateKey *) 0 ;
  uint8_t *arg2 = (uint8_t *) 0 ;
  SwigValueWrapper< bls::InsecureSignature > result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::PrivateKey **)&jarg1; 
  {
    arg2 = (uint8_t *) jenv->GetByteArrayElements(jarg2, 0);
  }
  result = ((bls::PrivateKey const *)arg1)->SignInsecurePrehashed((uint8_t const *)arg2);
  *(InsecureSignature **)&jresult = new InsecureSignature((const InsecureSignature &)result); 
  {
    jenv->ReleaseByteArrayElements(jarg2, (jbyte *) arg2, 0);
  }
  
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_PrivateKey_1Sign(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
  jlong jresult = 0 ;
  bls::PrivateKey *arg1 = (bls::PrivateKey *) 0 ;
  uint8_t *arg2 = (uint8_t *) 0 ;
  size_t arg3 ;
  SwigValueWrapper< bls::Signature > result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::PrivateKey **)&jarg1; 
  {
    arg2 = (uint8_t *) jenv->GetByteArrayElements(jarg2, 0);
  }
  arg3 = (size_t)jarg3; 
  result = ((bls::PrivateKey const *)arg1)->Sign((uint8_t const *)arg2,arg3);
  *(Signature **)&jresult = new Signature((const Signature &)result); 
  {
    jenv->ReleaseByteArrayElements(jarg2, (jbyte *) arg2, 0);
  }
  
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_PrivateKey_1SignPrehashed(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2) {
  jlong jresult = 0 ;
  bls::PrivateKey *arg1 = (bls::PrivateKey *) 0 ;
  uint8_t *arg2 = (uint8_t *) 0 ;
  SwigValueWrapper< bls::Signature > result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::PrivateKey **)&jarg1; 
  {
    arg2 = (uint8_t *) jenv->GetByteArrayElements(jarg2, 0);
  }
  result = ((bls::PrivateKey const *)arg1)->SignPrehashed((uint8_t const *)arg2);
  *(Signature **)&jresult = new Signature((const Signature &)result); 
  {
    jenv->ReleaseByteArrayElements(jarg2, (jbyte *) arg2, 0);
  }
  
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_PublicKey_1PUBLIC_1KEY_1SIZE_1get(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  size_t result;
  
  (void)jenv;
  (void)jcls;
  result = bls::PublicKey::PUBLIC_KEY_SIZE;
  jresult = (jlong)result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_PublicKey_1FromBytes(JNIEnv *jenv, jclass jcls, jbyteArray jarg1) {
  jlong jresult = 0 ;
  uint8_t *arg1 = (uint8_t *) 0 ;
  SwigValueWrapper< bls::PublicKey > result;
  
  (void)jenv;
  (void)jcls;
  {
    arg1 = (uint8_t *) jenv->GetByteArrayElements(jarg1, 0);
  }
  result = bls::PublicKey::FromBytes((unsigned char const *)arg1);
  *(bls::PublicKey **)&jresult = new bls::PublicKey((const bls::PublicKey &)result); 
  {
    jenv->ReleaseByteArrayElements(jarg1, (jbyte *) arg1, 0);
  }
  
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_PublicKey_1FromG1(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  g1_t *arg1 = (g1_t *) 0 ;
  SwigValueWrapper< bls::PublicKey > result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(g1_t **)&jarg1; 
  result = bls::PublicKey::FromG1((g1_t const *)arg1);
  *(bls::PublicKey **)&jresult = new bls::PublicKey((const bls::PublicKey &)result); 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_new_1PublicKey(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  bls::PublicKey *arg1 = 0 ;
  bls::PublicKey *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::PublicKey **)&jarg1;
  if (!arg1) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "bls::PublicKey const & reference is null");
    return 0;
  } 
  result = (bls::PublicKey *)new bls::PublicKey((bls::PublicKey const &)*arg1);
  *(bls::PublicKey **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_PublicKey_1AggregateInsecure(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  std::vector< bls::PublicKey > *arg1 = 0 ;
  SwigValueWrapper< bls::PublicKey > result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::PublicKey > **)&jarg1;
  if (!arg1) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< bls::PublicKey > const & reference is null");
    return 0;
  } 
  result = bls::PublicKey::AggregateInsecure((std::vector< bls::PublicKey > const &)*arg1);
  *(bls::PublicKey **)&jresult = new bls::PublicKey((const bls::PublicKey &)result); 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_PublicKey_1Aggregate(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  std::vector< bls::PublicKey > *arg1 = 0 ;
  SwigValueWrapper< bls::PublicKey > result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::PublicKey > **)&jarg1;
  if (!arg1) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< bls::PublicKey > const & reference is null");
    return 0;
  } 
  result = bls::PublicKey::Aggregate((std::vector< bls::PublicKey > const &)*arg1);
  *(bls::PublicKey **)&jresult = new bls::PublicKey((const bls::PublicKey &)result); 
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_PublicKey_1Serialize_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2) {
  bls::PublicKey *arg1 = (bls::PublicKey *) 0 ;
  uint8_t *arg2 = (uint8_t *) 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::PublicKey **)&jarg1; 
  {
    arg2 = (uint8_t *) jenv->GetByteArrayElements(jarg2, 0);
  }
  ((bls::PublicKey const *)arg1)->Serialize(arg2);
  {
    jenv->ReleaseByteArrayElements(jarg2, (jbyte *) arg2, 0);
  }
  
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_PublicKey_1Serialize_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  bls::PublicKey *arg1 = (bls::PublicKey *) 0 ;
  SwigValueWrapper< std::vector< unsigned char > > result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::PublicKey **)&jarg1; 
  result = ((bls::PublicKey const *)arg1)->Serialize();
  *(std::vector< uint8_t > **)&jresult = new std::vector< uint8_t >((const std::vector< uint8_t > &)result); 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_PublicKey_1GetFingerprint(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  bls::PublicKey *arg1 = (bls::PublicKey *) 0 ;
  uint32_t result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::PublicKey **)&jarg1; 
  result = (uint32_t)((bls::PublicKey const *)arg1)->GetFingerprint();
  jresult = (jlong)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_delete_1PublicKey(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  bls::PublicKey *arg1 = (bls::PublicKey *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(bls::PublicKey **)&jarg1; 
  delete arg1;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_InsecureSignature_1SIGNATURE_1SIZE_1get(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  size_t result;
  
  (void)jenv;
  (void)jcls;
  result = bls::InsecureSignature::SIGNATURE_SIZE;
  jresult = (jlong)result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_InsecureSignature_1FromBytes(JNIEnv *jenv, jclass jcls, jbyteArray jarg1) {
  jlong jresult = 0 ;
  uint8_t *arg1 = (uint8_t *) 0 ;
  SwigValueWrapper< bls::InsecureSignature > result;
  
  (void)jenv;
  (void)jcls;
  {
    arg1 = (uint8_t *) jenv->GetByteArrayElements(jarg1, 0);
  }
  result = bls::InsecureSignature::FromBytes((unsigned char const *)arg1);
  *(bls::InsecureSignature **)&jresult = new bls::InsecureSignature((const bls::InsecureSignature &)result); 
  {
    jenv->ReleaseByteArrayElements(jarg1, (jbyte *) arg1, 0);
  }
  
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_InsecureSignature_1FromG2(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  g2_t *arg1 = (g2_t *) 0 ;
  SwigValueWrapper< bls::InsecureSignature > result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(g2_t **)&jarg1; 
  result = bls::InsecureSignature::FromG2((g2_t const *)arg1);
  *(bls::InsecureSignature **)&jresult = new bls::InsecureSignature((const bls::InsecureSignature &)result); 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_new_1InsecureSignature(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  bls::InsecureSignature *arg1 = 0 ;
  bls::InsecureSignature *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::InsecureSignature **)&jarg1;
  if (!arg1) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "bls::InsecureSignature const & reference is null");
    return 0;
  } 
  result = (bls::InsecureSignature *)new bls::InsecureSignature((bls::InsecureSignature const &)*arg1);
  *(bls::InsecureSignature **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jboolean JNICALL Java_org_dashj_bls_JNI_InsecureSignature_1Verify(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3, jobject jarg3_) {
  jboolean jresult = 0 ;
  bls::InsecureSignature *arg1 = (bls::InsecureSignature *) 0 ;
  std::vector< uint8_t const * > *arg2 = 0 ;
  std::vector< bls::PublicKey > *arg3 = 0 ;
  bool result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  (void)jarg3_;
  arg1 = *(bls::InsecureSignature **)&jarg1; 
  arg2 = *(std::vector< uint8_t const * > **)&jarg2;
  if (!arg2) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< uint8_t const * > const & reference is null");
    return 0;
  } 
  arg3 = *(std::vector< bls::PublicKey > **)&jarg3;
  if (!arg3) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< bls::PublicKey > const & reference is null");
    return 0;
  } 
  result = (bool)((bls::InsecureSignature const *)arg1)->Verify((std::vector< uint8_t const * > const &)*arg2,(std::vector< bls::PublicKey > const &)*arg3);
  jresult = (jboolean)result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_InsecureSignature_1Aggregate(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  std::vector< bls::InsecureSignature > *arg1 = 0 ;
  SwigValueWrapper< bls::InsecureSignature > result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(std::vector< bls::InsecureSignature > **)&jarg1;
  if (!arg1) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< bls::InsecureSignature > const & reference is null");
    return 0;
  } 
  result = bls::InsecureSignature::Aggregate((std::vector< bls::InsecureSignature > const &)*arg1);
  *(bls::InsecureSignature **)&jresult = new bls::InsecureSignature((const bls::InsecureSignature &)result); 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_InsecureSignature_1DivideBy(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
  jlong jresult = 0 ;
  bls::InsecureSignature *arg1 = (bls::InsecureSignature *) 0 ;
  std::vector< bls::InsecureSignature > *arg2 = 0 ;
  SwigValueWrapper< bls::InsecureSignature > result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::InsecureSignature **)&jarg1; 
  arg2 = *(std::vector< bls::InsecureSignature > **)&jarg2;
  if (!arg2) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< bls::InsecureSignature > const & reference is null");
    return 0;
  } 
  result = ((bls::InsecureSignature const *)arg1)->DivideBy((std::vector< bls::InsecureSignature > const &)*arg2);
  *(bls::InsecureSignature **)&jresult = new bls::InsecureSignature((const bls::InsecureSignature &)result); 
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_InsecureSignature_1Serialize_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2) {
  bls::InsecureSignature *arg1 = (bls::InsecureSignature *) 0 ;
  uint8_t *arg2 = (uint8_t *) 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::InsecureSignature **)&jarg1; 
  {
    arg2 = (uint8_t *) jenv->GetByteArrayElements(jarg2, 0);
  }
  ((bls::InsecureSignature const *)arg1)->Serialize(arg2);
  {
    jenv->ReleaseByteArrayElements(jarg2, (jbyte *) arg2, 0);
  }
  
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_InsecureSignature_1Serialize_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  bls::InsecureSignature *arg1 = (bls::InsecureSignature *) 0 ;
  SwigValueWrapper< std::vector< unsigned char > > result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::InsecureSignature **)&jarg1; 
  result = ((bls::InsecureSignature const *)arg1)->Serialize();
  *(std::vector< uint8_t > **)&jresult = new std::vector< uint8_t >((const std::vector< uint8_t > &)result); 
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_delete_1InsecureSignature(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  bls::InsecureSignature *arg1 = (bls::InsecureSignature *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(bls::InsecureSignature **)&jarg1; 
  delete arg1;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_Signature_1SIGNATURE_1SIZE_1get(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  size_t result;
  
  (void)jenv;
  (void)jcls;
  result = bls::Signature::SIGNATURE_SIZE;
  jresult = (jlong)result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_Signature_1FromBytes_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jbyteArray jarg1) {
  jlong jresult = 0 ;
  uint8_t *arg1 = (uint8_t *) 0 ;
  SwigValueWrapper< bls::Signature > result;
  
  (void)jenv;
  (void)jcls;
  {
    arg1 = (uint8_t *) jenv->GetByteArrayElements(jarg1, 0);
  }
  result = bls::Signature::FromBytes((unsigned char const *)arg1);
  *(bls::Signature **)&jresult = new bls::Signature((const bls::Signature &)result); 
  {
    jenv->ReleaseByteArrayElements(jarg1, (jbyte *) arg1, 0);
  }
  
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_Signature_1FromBytes_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jbyteArray jarg1, jlong jarg2) {
  jlong jresult = 0 ;
  uint8_t *arg1 = (uint8_t *) 0 ;
  AggregationInfo *arg2 = 0 ;
  SwigValueWrapper< bls::Signature > result;
  
  (void)jenv;
  (void)jcls;
  {
    arg1 = (uint8_t *) jenv->GetByteArrayElements(jarg1, 0);
  }
  arg2 = *(AggregationInfo **)&jarg2;
  if (!arg2) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "AggregationInfo const & reference is null");
    return 0;
  } 
  result = bls::Signature::FromBytes((unsigned char const *)arg1,(AggregationInfo const &)*arg2);
  *(bls::Signature **)&jresult = new bls::Signature((const bls::Signature &)result); 
  {
    jenv->ReleaseByteArrayElements(jarg1, (jbyte *) arg1, 0);
  }
  
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_Signature_1FromG2_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  g2_t *arg1 = (g2_t *) 0 ;
  SwigValueWrapper< bls::Signature > result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(g2_t **)&jarg1; 
  result = bls::Signature::FromG2((g2_t const *)arg1);
  *(bls::Signature **)&jresult = new bls::Signature((const bls::Signature &)result); 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_Signature_1FromG2_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jlong jresult = 0 ;
  g2_t *arg1 = (g2_t *) 0 ;
  AggregationInfo *arg2 = 0 ;
  SwigValueWrapper< bls::Signature > result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(g2_t **)&jarg1; 
  arg2 = *(AggregationInfo **)&jarg2;
  if (!arg2) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "AggregationInfo const & reference is null");
    return 0;
  } 
  result = bls::Signature::FromG2((g2_t const *)arg1,(AggregationInfo const &)*arg2);
  *(bls::Signature **)&jresult = new bls::Signature((const bls::Signature &)result); 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_Signature_1FromInsecureSig_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  bls::InsecureSignature *arg1 = 0 ;
  SwigValueWrapper< bls::Signature > result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::InsecureSignature **)&jarg1;
  if (!arg1) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "bls::InsecureSignature const & reference is null");
    return 0;
  } 
  result = bls::Signature::FromInsecureSig((bls::InsecureSignature const &)*arg1);
  *(bls::Signature **)&jresult = new bls::Signature((const bls::Signature &)result); 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_Signature_1FromInsecureSig_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
  jlong jresult = 0 ;
  bls::InsecureSignature *arg1 = 0 ;
  AggregationInfo *arg2 = 0 ;
  SwigValueWrapper< bls::Signature > result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::InsecureSignature **)&jarg1;
  if (!arg1) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "bls::InsecureSignature const & reference is null");
    return 0;
  } 
  arg2 = *(AggregationInfo **)&jarg2;
  if (!arg2) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "AggregationInfo const & reference is null");
    return 0;
  } 
  result = bls::Signature::FromInsecureSig((bls::InsecureSignature const &)*arg1,(AggregationInfo const &)*arg2);
  *(bls::Signature **)&jresult = new bls::Signature((const bls::Signature &)result); 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_new_1Signature(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  bls::Signature *arg1 = 0 ;
  bls::Signature *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::Signature **)&jarg1;
  if (!arg1) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "bls::Signature const & reference is null");
    return 0;
  } 
  result = (bls::Signature *)new bls::Signature((bls::Signature const &)*arg1);
  *(bls::Signature **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jboolean JNICALL Java_org_dashj_bls_JNI_Signature_1Verify(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jboolean jresult = 0 ;
  bls::Signature *arg1 = (bls::Signature *) 0 ;
  bool result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::Signature **)&jarg1; 
  result = (bool)((bls::Signature const *)arg1)->Verify();
  jresult = (jboolean)result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_Signature_1AggregateSigs(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  std::vector< bls::Signature > *arg1 = 0 ;
  SwigValueWrapper< bls::Signature > result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(std::vector< bls::Signature > **)&jarg1;
  if (!arg1) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< bls::Signature > const & reference is null");
    return 0;
  } 
  result = bls::Signature::AggregateSigs((std::vector< bls::Signature > const &)*arg1);
  *(bls::Signature **)&jresult = new bls::Signature((const bls::Signature &)result); 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_Signature_1DivideBy(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
  jlong jresult = 0 ;
  bls::Signature *arg1 = (bls::Signature *) 0 ;
  std::vector< bls::Signature > *arg2 = 0 ;
  SwigValueWrapper< bls::Signature > result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::Signature **)&jarg1; 
  arg2 = *(std::vector< bls::Signature > **)&jarg2;
  if (!arg2) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< bls::Signature > const & reference is null");
    return 0;
  } 
  result = ((bls::Signature const *)arg1)->DivideBy((std::vector< bls::Signature > const &)*arg2);
  *(bls::Signature **)&jresult = new bls::Signature((const bls::Signature &)result); 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_Signature_1GetAggregationInfo(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  bls::Signature *arg1 = (bls::Signature *) 0 ;
  AggregationInfo *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::Signature **)&jarg1; 
  result = (AggregationInfo *)((bls::Signature const *)arg1)->GetAggregationInfo();
  *(AggregationInfo **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_Signature_1SetAggregationInfo(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
  bls::Signature *arg1 = (bls::Signature *) 0 ;
  AggregationInfo *arg2 = 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::Signature **)&jarg1; 
  arg2 = *(AggregationInfo **)&jarg2;
  if (!arg2) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "AggregationInfo const & reference is null");
    return ;
  } 
  (arg1)->SetAggregationInfo((AggregationInfo const &)*arg2);
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_Signature_1Serialize_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2) {
  bls::Signature *arg1 = (bls::Signature *) 0 ;
  uint8_t *arg2 = (uint8_t *) 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::Signature **)&jarg1; 
  {
    arg2 = (uint8_t *) jenv->GetByteArrayElements(jarg2, 0);
  }
  ((bls::Signature const *)arg1)->Serialize(arg2);
  {
    jenv->ReleaseByteArrayElements(jarg2, (jbyte *) arg2, 0);
  }
  
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_Signature_1Serialize_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  bls::Signature *arg1 = (bls::Signature *) 0 ;
  SwigValueWrapper< std::vector< unsigned char > > result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::Signature **)&jarg1; 
  result = ((bls::Signature const *)arg1)->Serialize();
  *(std::vector< uint8_t > **)&jresult = new std::vector< uint8_t >((const std::vector< uint8_t > &)result); 
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_delete_1Signature(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  bls::Signature *arg1 = (bls::Signature *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(bls::Signature **)&jarg1; 
  delete arg1;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_AggregationInfo_1FromMsgHash(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2) {
  jlong jresult = 0 ;
  bls::PublicKey *arg1 = 0 ;
  uint8_t *arg2 = (uint8_t *) 0 ;
  bls::AggregationInfo result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::PublicKey **)&jarg1;
  if (!arg1) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "bls::PublicKey const & reference is null");
    return 0;
  } 
  {
    arg2 = (uint8_t *) jenv->GetByteArrayElements(jarg2, 0);
  }
  result = bls::AggregationInfo::FromMsgHash((bls::PublicKey const &)*arg1,(unsigned char const *)arg2);
  *(bls::AggregationInfo **)&jresult = new bls::AggregationInfo((const bls::AggregationInfo &)result); 
  {
    jenv->ReleaseByteArrayElements(jarg2, (jbyte *) arg2, 0);
  }
  
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_AggregationInfo_1FromMsg(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
  jlong jresult = 0 ;
  bls::PublicKey *arg1 = 0 ;
  uint8_t *arg2 = (uint8_t *) 0 ;
  size_t arg3 ;
  bls::AggregationInfo result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::PublicKey **)&jarg1;
  if (!arg1) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "bls::PublicKey const & reference is null");
    return 0;
  } 
  {
    arg2 = (uint8_t *) jenv->GetByteArrayElements(jarg2, 0);
  }
  arg3 = (size_t)jarg3; 
  result = bls::AggregationInfo::FromMsg((bls::PublicKey const &)*arg1,(unsigned char const *)arg2,arg3);
  *(bls::AggregationInfo **)&jresult = new bls::AggregationInfo((const bls::AggregationInfo &)result); 
  {
    jenv->ReleaseByteArrayElements(jarg2, (jbyte *) arg2, 0);
  }
  
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_AggregationInfo_1FromVectors(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) {
  jlong jresult = 0 ;
  std::vector< bls::PublicKey > *arg1 = 0 ;
  std::vector< uint8_t * > *arg2 = 0 ;
  std::vector< bn_t * > *arg3 = 0 ;
  bls::AggregationInfo result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  (void)jarg2_;
  (void)jarg3_;
  arg1 = *(std::vector< bls::PublicKey > **)&jarg1;
  if (!arg1) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< bls::PublicKey > const & reference is null");
    return 0;
  } 
  arg2 = *(std::vector< uint8_t * > **)&jarg2;
  if (!arg2) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< uint8_t * > const & reference is null");
    return 0;
  } 
  arg3 = *(std::vector< bn_t * > **)&jarg3;
  if (!arg3) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< bn_t * > const & reference is null");
    return 0;
  } 
  result = bls::AggregationInfo::FromVectors((std::vector< bls::PublicKey > const &)*arg1,(std::vector< unsigned char * > const &)*arg2,(std::vector< bn_t * > const &)*arg3);
  *(bls::AggregationInfo **)&jresult = new bls::AggregationInfo((const bls::AggregationInfo &)result); 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_AggregationInfo_1MergeInfos(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  std::vector< bls::AggregationInfo > *arg1 = 0 ;
  bls::AggregationInfo result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(std::vector< bls::AggregationInfo > **)&jarg1;
  if (!arg1) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< bls::AggregationInfo > const & reference is null");
    return 0;
  } 
  result = bls::AggregationInfo::MergeInfos((std::vector< bls::AggregationInfo > const &)*arg1);
  *(bls::AggregationInfo **)&jresult = new bls::AggregationInfo((const bls::AggregationInfo &)result); 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_new_1AggregationInfo_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  bls::AggregationInfo *arg1 = 0 ;
  bls::AggregationInfo *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::AggregationInfo **)&jarg1;
  if (!arg1) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "bls::AggregationInfo const & reference is null");
    return 0;
  } 
  result = (bls::AggregationInfo *)new bls::AggregationInfo((bls::AggregationInfo const &)*arg1);
  *(bls::AggregationInfo **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_AggregationInfo_1RemoveEntries(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) {
  bls::AggregationInfo *arg1 = (bls::AggregationInfo *) 0 ;
  std::vector< uint8_t * > *arg2 = 0 ;
  std::vector< bls::PublicKey > *arg3 = 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  (void)jarg2_;
  (void)jarg3_;
  arg1 = *(bls::AggregationInfo **)&jarg1; 
  arg2 = *(std::vector< uint8_t * > **)&jarg2;
  if (!arg2) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< uint8_t * > const & reference is null");
    return ;
  } 
  arg3 = *(std::vector< bls::PublicKey > **)&jarg3;
  if (!arg3) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< bls::PublicKey > const & reference is null");
    return ;
  } 
  (arg1)->RemoveEntries((std::vector< uint8_t * > const &)*arg2,(std::vector< bls::PublicKey > const &)*arg3);
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_AggregationInfo_1GetExponent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jbyteArray jarg3, jlong jarg4, jobject jarg4_) {
  bls::AggregationInfo *arg1 = (bls::AggregationInfo *) 0 ;
  bn_t *arg2 = (bn_t *) 0 ;
  uint8_t *arg3 = (uint8_t *) 0 ;
  bls::PublicKey *arg4 = 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  (void)jarg4_;
  arg1 = *(bls::AggregationInfo **)&jarg1; 
  arg2 = *(bn_t **)&jarg2; 
  {
    arg3 = (uint8_t *) jenv->GetByteArrayElements(jarg3, 0);
  }
  arg4 = *(bls::PublicKey **)&jarg4;
  if (!arg4) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "bls::PublicKey const & reference is null");
    return ;
  } 
  ((bls::AggregationInfo const *)arg1)->GetExponent(arg2,(uint8_t const *)arg3,(bls::PublicKey const &)*arg4);
  {
    jenv->ReleaseByteArrayElements(jarg3, (jbyte *) arg3, 0);
  }
  
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_AggregationInfo_1GetPubKeys(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  bls::AggregationInfo *arg1 = (bls::AggregationInfo *) 0 ;
  std::vector< bls::PublicKey > result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::AggregationInfo **)&jarg1; 
  result = ((bls::AggregationInfo const *)arg1)->GetPubKeys();
  *(std::vector< bls::PublicKey > **)&jresult = new std::vector< bls::PublicKey >((const std::vector< bls::PublicKey > &)result); 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_AggregationInfo_1GetMessageHashes(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  bls::AggregationInfo *arg1 = (bls::AggregationInfo *) 0 ;
  std::vector< uint8_t * > result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::AggregationInfo **)&jarg1; 
  result = ((bls::AggregationInfo const *)arg1)->GetMessageHashes();
  *(std::vector< uint8_t * > **)&jresult = new std::vector< uint8_t * >((const std::vector< uint8_t * > &)result); 
  return jresult;
}


SWIGEXPORT jboolean JNICALL Java_org_dashj_bls_JNI_AggregationInfo_1Empty(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jboolean jresult = 0 ;
  bls::AggregationInfo *arg1 = (bls::AggregationInfo *) 0 ;
  bool result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(bls::AggregationInfo **)&jarg1; 
  result = (bool)((bls::AggregationInfo const *)arg1)->Empty();
  jresult = (jboolean)result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_new_1AggregationInfo_1_1SWIG_11(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  bls::AggregationInfo *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (bls::AggregationInfo *)new bls::AggregationInfo();
  *(bls::AggregationInfo **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_delete_1AggregationInfo(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  bls::AggregationInfo *arg1 = (bls::AggregationInfo *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(bls::AggregationInfo **)&jarg1; 
  delete arg1;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_new_1PublicKeyVec_1_1SWIG_10(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  std::vector< bls::PublicKey > *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (std::vector< bls::PublicKey > *)new std::vector< bls::PublicKey >();
  *(std::vector< bls::PublicKey > **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_new_1PublicKeyVec_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  std::vector< bls::PublicKey > *arg1 = 0 ;
  std::vector< bls::PublicKey > *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::PublicKey > **)&jarg1;
  if (!arg1) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< bls::PublicKey > const & reference is null");
    return 0;
  } 
  result = (std::vector< bls::PublicKey > *)new std::vector< bls::PublicKey >((std::vector< bls::PublicKey > const &)*arg1);
  *(std::vector< bls::PublicKey > **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_PublicKeyVec_1capacity(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  std::vector< bls::PublicKey > *arg1 = (std::vector< bls::PublicKey > *) 0 ;
  std::vector< bls::PublicKey >::size_type result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::PublicKey > **)&jarg1; 
  result = ((std::vector< bls::PublicKey > const *)arg1)->capacity();
  jresult = (jlong)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_PublicKeyVec_1reserve(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
  std::vector< bls::PublicKey > *arg1 = (std::vector< bls::PublicKey > *) 0 ;
  std::vector< bls::PublicKey >::size_type arg2 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::PublicKey > **)&jarg1; 
  arg2 = (std::vector< bls::PublicKey >::size_type)jarg2; 
  (arg1)->reserve(arg2);
}


SWIGEXPORT jboolean JNICALL Java_org_dashj_bls_JNI_PublicKeyVec_1isEmpty(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jboolean jresult = 0 ;
  std::vector< bls::PublicKey > *arg1 = (std::vector< bls::PublicKey > *) 0 ;
  bool result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::PublicKey > **)&jarg1; 
  result = (bool)((std::vector< bls::PublicKey > const *)arg1)->empty();
  jresult = (jboolean)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_PublicKeyVec_1clear(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  std::vector< bls::PublicKey > *arg1 = (std::vector< bls::PublicKey > *) 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::PublicKey > **)&jarg1; 
  (arg1)->clear();
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_PublicKeyVec_1push_1back(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  std::vector< bls::PublicKey > *arg1 = (std::vector< bls::PublicKey > *) 0 ;
  std::vector< bls::PublicKey >::value_type *arg2 = 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  (void)jarg2_;
  arg1 = *(std::vector< bls::PublicKey > **)&jarg1; 
  arg2 = *(std::vector< bls::PublicKey >::value_type **)&jarg2;
  if (!arg2) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< bls::PublicKey >::value_type const & reference is null");
    return ;
  } 
  (arg1)->push_back((std::vector< bls::PublicKey >::value_type const &)*arg2);
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_PublicKeyVec_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
  jlong jresult = 0 ;
  std::vector< bls::PublicKey > *arg1 = (std::vector< bls::PublicKey > *) 0 ;
  int arg2 ;
  std::vector< bls::PublicKey >::value_type *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::PublicKey > **)&jarg1; 
  arg2 = (int)jarg2; 
  try {
    result = (std::vector< bls::PublicKey >::value_type *) &std_vector_Sl_bls_PublicKey_Sg__get((std::vector< bls::PublicKey > const *)arg1,arg2);
  }
  catch(std::out_of_range &_e) {
    SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, (&_e)->what());
    return 0;
  }
  
  *(std::vector< bls::PublicKey >::value_type **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_PublicKeyVec_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jlong jarg3, jobject jarg3_) {
  jlong jresult = 0 ;
  std::vector< bls::PublicKey > *arg1 = (std::vector< bls::PublicKey > *) 0 ;
  int arg2 ;
  std::vector< bls::PublicKey >::value_type *arg3 = 0 ;
  SwigValueWrapper< bls::PublicKey > result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  (void)jarg3_;
  arg1 = *(std::vector< bls::PublicKey > **)&jarg1; 
  arg2 = (int)jarg2; 
  arg3 = *(std::vector< bls::PublicKey >::value_type **)&jarg3;
  if (!arg3) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< bls::PublicKey >::value_type const & reference is null");
    return 0;
  } 
  try {
    result = std_vector_Sl_bls_PublicKey_Sg__set(arg1,arg2,(bls::PublicKey &)*arg3);
  }
  catch(std::out_of_range &_e) {
    SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, (&_e)->what());
    return 0;
  }
  
  *(std::vector< bls::PublicKey >::value_type **)&jresult = new std::vector< bls::PublicKey >::value_type((const std::vector< bls::PublicKey >::value_type &)result); 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_org_dashj_bls_JNI_PublicKeyVec_1size(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jint jresult = 0 ;
  std::vector< bls::PublicKey > *arg1 = (std::vector< bls::PublicKey > *) 0 ;
  int32_t result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::PublicKey > **)&jarg1; 
  result = (int32_t)std_vector_Sl_bls_PublicKey_Sg__size((std::vector< bls::PublicKey > const *)arg1);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_PublicKeyVec_1removeRange(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3) {
  std::vector< bls::PublicKey > *arg1 = (std::vector< bls::PublicKey > *) 0 ;
  int32_t arg2 ;
  int32_t arg3 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::PublicKey > **)&jarg1; 
  arg2 = (int32_t)jarg2; 
  arg3 = (int32_t)jarg3; 
  std_vector_Sl_bls_PublicKey_Sg__removeRange(arg1,arg2,arg3);
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_delete_1PublicKeyVec(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  std::vector< bls::PublicKey > *arg1 = (std::vector< bls::PublicKey > *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(std::vector< bls::PublicKey > **)&jarg1; 
  delete arg1;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_new_1PrivateKeyVec_1_1SWIG_10(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  std::vector< bls::PrivateKey > *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (std::vector< bls::PrivateKey > *)new std::vector< bls::PrivateKey >();
  *(std::vector< bls::PrivateKey > **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_new_1PrivateKeyVec_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  std::vector< bls::PrivateKey > *arg1 = 0 ;
  std::vector< bls::PrivateKey > *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::PrivateKey > **)&jarg1;
  if (!arg1) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< bls::PrivateKey > const & reference is null");
    return 0;
  } 
  result = (std::vector< bls::PrivateKey > *)new std::vector< bls::PrivateKey >((std::vector< bls::PrivateKey > const &)*arg1);
  *(std::vector< bls::PrivateKey > **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_PrivateKeyVec_1capacity(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  std::vector< bls::PrivateKey > *arg1 = (std::vector< bls::PrivateKey > *) 0 ;
  std::vector< bls::PrivateKey >::size_type result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::PrivateKey > **)&jarg1; 
  result = ((std::vector< bls::PrivateKey > const *)arg1)->capacity();
  jresult = (jlong)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_PrivateKeyVec_1reserve(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
  std::vector< bls::PrivateKey > *arg1 = (std::vector< bls::PrivateKey > *) 0 ;
  std::vector< bls::PrivateKey >::size_type arg2 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::PrivateKey > **)&jarg1; 
  arg2 = (std::vector< bls::PrivateKey >::size_type)jarg2; 
  (arg1)->reserve(arg2);
}


SWIGEXPORT jboolean JNICALL Java_org_dashj_bls_JNI_PrivateKeyVec_1isEmpty(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jboolean jresult = 0 ;
  std::vector< bls::PrivateKey > *arg1 = (std::vector< bls::PrivateKey > *) 0 ;
  bool result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::PrivateKey > **)&jarg1; 
  result = (bool)((std::vector< bls::PrivateKey > const *)arg1)->empty();
  jresult = (jboolean)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_PrivateKeyVec_1clear(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  std::vector< bls::PrivateKey > *arg1 = (std::vector< bls::PrivateKey > *) 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::PrivateKey > **)&jarg1; 
  (arg1)->clear();
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_PrivateKeyVec_1push_1back(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  std::vector< bls::PrivateKey > *arg1 = (std::vector< bls::PrivateKey > *) 0 ;
  std::vector< bls::PrivateKey >::value_type *arg2 = 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  (void)jarg2_;
  arg1 = *(std::vector< bls::PrivateKey > **)&jarg1; 
  arg2 = *(std::vector< bls::PrivateKey >::value_type **)&jarg2;
  if (!arg2) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< bls::PrivateKey >::value_type const & reference is null");
    return ;
  } 
  (arg1)->push_back((std::vector< bls::PrivateKey >::value_type const &)*arg2);
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_PrivateKeyVec_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
  jlong jresult = 0 ;
  std::vector< bls::PrivateKey > *arg1 = (std::vector< bls::PrivateKey > *) 0 ;
  int arg2 ;
  std::vector< bls::PrivateKey >::value_type *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::PrivateKey > **)&jarg1; 
  arg2 = (int)jarg2; 
  try {
    result = (std::vector< bls::PrivateKey >::value_type *) &std_vector_Sl_bls_PrivateKey_Sg__get((std::vector< bls::PrivateKey > const *)arg1,arg2);
  }
  catch(std::out_of_range &_e) {
    SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, (&_e)->what());
    return 0;
  }
  
  *(std::vector< bls::PrivateKey >::value_type **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_PrivateKeyVec_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jlong jarg3, jobject jarg3_) {
  jlong jresult = 0 ;
  std::vector< bls::PrivateKey > *arg1 = (std::vector< bls::PrivateKey > *) 0 ;
  int arg2 ;
  std::vector< bls::PrivateKey >::value_type *arg3 = 0 ;
  SwigValueWrapper< bls::PrivateKey > result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  (void)jarg3_;
  arg1 = *(std::vector< bls::PrivateKey > **)&jarg1; 
  arg2 = (int)jarg2; 
  arg3 = *(std::vector< bls::PrivateKey >::value_type **)&jarg3;
  if (!arg3) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< bls::PrivateKey >::value_type const & reference is null");
    return 0;
  } 
  try {
    result = std_vector_Sl_bls_PrivateKey_Sg__set(arg1,arg2,(bls::PrivateKey &)*arg3);
  }
  catch(std::out_of_range &_e) {
    SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, (&_e)->what());
    return 0;
  }
  
  *(std::vector< bls::PrivateKey >::value_type **)&jresult = new std::vector< bls::PrivateKey >::value_type((const std::vector< bls::PrivateKey >::value_type &)result); 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_org_dashj_bls_JNI_PrivateKeyVec_1size(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jint jresult = 0 ;
  std::vector< bls::PrivateKey > *arg1 = (std::vector< bls::PrivateKey > *) 0 ;
  int32_t result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::PrivateKey > **)&jarg1; 
  result = (int32_t)std_vector_Sl_bls_PrivateKey_Sg__size((std::vector< bls::PrivateKey > const *)arg1);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_PrivateKeyVec_1removeRange(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3) {
  std::vector< bls::PrivateKey > *arg1 = (std::vector< bls::PrivateKey > *) 0 ;
  int32_t arg2 ;
  int32_t arg3 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::PrivateKey > **)&jarg1; 
  arg2 = (int32_t)jarg2; 
  arg3 = (int32_t)jarg3; 
  std_vector_Sl_bls_PrivateKey_Sg__removeRange(arg1,arg2,arg3);
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_delete_1PrivateKeyVec(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  std::vector< bls::PrivateKey > *arg1 = (std::vector< bls::PrivateKey > *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(std::vector< bls::PrivateKey > **)&jarg1; 
  delete arg1;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_new_1ByteArrayVec_1_1SWIG_10(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  std::vector< uint8_t * > *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (std::vector< uint8_t * > *)new std::vector< uint8_t * >();
  *(std::vector< uint8_t * > **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_new_1ByteArrayVec_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  std::vector< unsigned char * >::size_type arg1 ;
  std::vector< uint8_t * > *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = (std::vector< unsigned char * >::size_type)jarg1; 
  result = (std::vector< uint8_t * > *)new std::vector< uint8_t * >(arg1);
  *(std::vector< uint8_t * > **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_new_1ByteArrayVec_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  std::vector< uint8_t * > *arg1 = 0 ;
  std::vector< uint8_t * > *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< uint8_t * > **)&jarg1;
  if (!arg1) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< uint8_t * > const & reference is null");
    return 0;
  } 
  result = (std::vector< uint8_t * > *)new std::vector< uint8_t * >((std::vector< uint8_t * > const &)*arg1);
  *(std::vector< uint8_t * > **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_ByteArrayVec_1capacity(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  std::vector< uint8_t * > *arg1 = (std::vector< uint8_t * > *) 0 ;
  std::vector< unsigned char * >::size_type result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< uint8_t * > **)&jarg1; 
  result = ((std::vector< uint8_t * > const *)arg1)->capacity();
  jresult = (jlong)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_ByteArrayVec_1reserve(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
  std::vector< uint8_t * > *arg1 = (std::vector< uint8_t * > *) 0 ;
  std::vector< unsigned char * >::size_type arg2 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< uint8_t * > **)&jarg1; 
  arg2 = (std::vector< unsigned char * >::size_type)jarg2; 
  (arg1)->reserve(arg2);
}


SWIGEXPORT jboolean JNICALL Java_org_dashj_bls_JNI_ByteArrayVec_1isEmpty(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jboolean jresult = 0 ;
  std::vector< uint8_t * > *arg1 = (std::vector< uint8_t * > *) 0 ;
  bool result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< uint8_t * > **)&jarg1; 
  result = (bool)((std::vector< uint8_t * > const *)arg1)->empty();
  jresult = (jboolean)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_ByteArrayVec_1clear(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  std::vector< uint8_t * > *arg1 = (std::vector< uint8_t * > *) 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< uint8_t * > **)&jarg1;
  for(uint8_t * element : *arg1)
    delete element;
  (arg1)->clear();
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_ByteArrayVec_1push_1back(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2) {
  std::vector< uint8_t * > *arg1 = (std::vector< uint8_t * > *) 0 ;
  std::vector< unsigned char * >::value_type arg2 = 0 ;
  size_t arg2len = 0;

  std::vector< unsigned char * >::value_type temp2 = 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
    {
      arg2 = (std::vector< unsigned char * >::value_type) jenv->GetByteArrayElements(jarg2, 0);
      arg2len = jenv->GetArrayLength(jarg2);
    }

    if(arg2len != BLS::MESSAGE_HASH_LEN) {
      SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, "push_back: Message Hash byte array size not 32 bytes");
      return;
  }

  arg1 = *(std::vector< uint8_t * > **)&jarg1;
   std::vector< unsigned char * >::value_type arg2copy = new unsigned char[arg2len];
   memcpy(arg2copy, arg2, arg2len);
  //temp2 = *(std::vector< unsigned char * >::value_type *)&jarg2;
  //arg2 = (std::vector< unsigned char * >::value_type *)&temp2;
  (arg1)->push_back((std::vector< unsigned char * >::value_type const &)arg2copy);
      {
        jenv->ReleaseByteArrayElements(jarg2, (jbyte *) arg2, 0);
      }
}


SWIGEXPORT jbyteArray JNICALL Java_org_dashj_bls_JNI_ByteArrayVec_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
  jbyteArray jresult = 0 ;
  std::vector< uint8_t * > *arg1 = (std::vector< uint8_t * > *) 0 ;
  int arg2 ;
  std::vector< unsigned char * >::value_type result = 0;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< uint8_t * > **)&jarg1; 
  arg2 = (int)jarg2; 
  try {
    result = (std::vector< unsigned char * >::value_type) std_vector_Sl_uint8_t_Sm__Sg__get((std::vector< unsigned char * > const *)arg1,arg2);
  }
  catch(std::out_of_range &_e) {
    SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, (&_e)->what());
    return 0;
  }
  
  jresult = jenv->NewByteArray(BLS::MESSAGE_HASH_LEN);
  
    if (result == NULL) {
        SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "Can't create new byte array");
        return NULL; //  out of memory error thrown
    }

    // create bytes from result
    /*jbyte *bytes = jenv->GetByteArrayElements(jresult, 0);
    int i;
    for (i = 0; i < BLS::MESSAGE_HASH_LEN; i++) {
        bytes[i] = result[i];
   }
*/
    // move from the temp structure to the java structure
    jenv->SetByteArrayRegion(jresult, 0, BLS::MESSAGE_HASH_LEN, (jbyte*)result); 
  /**/
  //*(std::vector< unsigned char * >::value_type *)&jresult = *result; 
  return jresult;
}


SWIGEXPORT jbyteArray JNICALL Java_org_dashj_bls_JNI_ByteArrayVec_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jbyteArray jarg3) {
  jbyteArray jresult = 0 ;
  std::vector< uint8_t * > *arg1 = (std::vector< uint8_t * > *) 0 ;
  int arg2 ;
  std::vector< unsigned char * >::value_type arg3 = 0 ;
  std::vector< unsigned char * >::value_type temp3 = 0 ;
  std::vector< unsigned char * >::value_type result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< uint8_t * > **)&jarg1; 
  arg2 = (int)jarg2; 
  
  arg3 = (std::vector< unsigned char * >::value_type) jenv->GetByteArrayElements(jarg3, 0);
  int arg3len = jenv->GetArrayLength(jarg3);
  if(arg3len != BLS::MESSAGE_HASH_LEN) {
      SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, "Message Hash byte array size not 32 bytes");
      return 0;
  }
              
  
  std::vector< unsigned char * >::value_type arg3copy = new unsigned char[arg3len];
  memcpy(arg3copy, arg3, arg3len);

  //temp3 = *(std::vector< unsigned char * >::value_type *)&jarg3;
  //arg3 = (std::vector< unsigned char * >::value_type *)&temp3; 
  try {
    result = (std::vector< unsigned char * >::value_type)std_vector_Sl_uint8_t_Sm__Sg__set(arg1,arg2, arg3copy);
  }
  catch(std::out_of_range &_e) {
    SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, (&_e)->what());
    return 0;
  }
  
  jresult = jenv->NewByteArray(BLS::MESSAGE_HASH_LEN);
  
    if (result == NULL) {
        SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "Can't create new byte array");
        return NULL; //  out of memory error thrown
    }

    // create bytes from result
    /*jbyte *bytes = jenv->GetByteArrayElements(jresult, 0);
    int i;
    for (i = 0; i < BLS::MESSAGE_HASH_LEN; i++) {
        bytes[i] = result[i];
    }*/

    // move from the temp structure to the java structure
    jenv->SetByteArrayRegion(jresult, 0, BLS::MESSAGE_HASH_LEN, (jbyte*)result);        
    delete result; 
  
  return jresult;
}


SWIGEXPORT jint JNICALL Java_org_dashj_bls_JNI_ByteArrayVec_1size(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jint jresult = 0 ;
  std::vector< uint8_t * > *arg1 = (std::vector< uint8_t * > *) 0 ;
  int32_t result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< uint8_t * > **)&jarg1; 
  result = (int32_t)std_vector_Sl_uint8_t_Sm__Sg__size((std::vector< unsigned char * > const *)arg1);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_ByteArrayVec_1removeRange(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3) {
  std::vector< uint8_t * > *arg1 = (std::vector< uint8_t * > *) 0 ;
  int32_t arg2 ;
  int32_t arg3 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< uint8_t * > **)&jarg1; 
  arg2 = (int32_t)jarg2; 
  arg3 = (int32_t)jarg3;
  for(int i = arg2; i <= arg3; i++)
      delete (*arg1)[i];
  std_vector_Sl_uint8_t_Sm__Sg__removeRange(arg1,arg2,arg3);
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_delete_1ByteArrayVec(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  std::vector< uint8_t * > *arg1 = (std::vector< uint8_t * > *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(std::vector< uint8_t * > **)&jarg1; 
  //We must delete all of the elements first
  for(uint8_t * element : *arg1)
      delete element;
  delete arg1;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_new_1BigIntegerVec_1_1SWIG_10(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  std::vector< bn_t * > *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (std::vector< bn_t * > *)new std::vector< bn_t * >();
  *(std::vector< bn_t * > **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_new_1BigIntegerVec_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  std::vector< bn_t * >::size_type arg1 ;
  std::vector< bn_t * > *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = (std::vector< bn_t * >::size_type)jarg1; 
  result = (std::vector< bn_t * > *)new std::vector< bn_t * >(arg1);
  *(std::vector< bn_t * > **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_new_1BigIntegerVec_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  std::vector< bn_t * > *arg1 = 0 ;
  std::vector< bn_t * > *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bn_t * > **)&jarg1;
  if (!arg1) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< bn_t * > const & reference is null");
    return 0;
  } 
  result = (std::vector< bn_t * > *)new std::vector< bn_t * >((std::vector< bn_t * > const &)*arg1);
  *(std::vector< bn_t * > **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_BigIntegerVec_1capacity(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  std::vector< bn_t * > *arg1 = (std::vector< bn_t * > *) 0 ;
  std::vector< bn_t * >::size_type result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bn_t * > **)&jarg1; 
  result = ((std::vector< bn_t * > const *)arg1)->capacity();
  jresult = (jlong)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_BigIntegerVec_1reserve(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
  std::vector< bn_t * > *arg1 = (std::vector< bn_t * > *) 0 ;
  std::vector< bn_t * >::size_type arg2 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bn_t * > **)&jarg1; 
  arg2 = (std::vector< bn_t * >::size_type)jarg2; 
  (arg1)->reserve(arg2);
}


SWIGEXPORT jboolean JNICALL Java_org_dashj_bls_JNI_BigIntegerVec_1isEmpty(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jboolean jresult = 0 ;
  std::vector< bn_t * > *arg1 = (std::vector< bn_t * > *) 0 ;
  bool result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bn_t * > **)&jarg1; 
  result = (bool)((std::vector< bn_t * > const *)arg1)->empty();
  jresult = (jboolean)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_BigIntegerVec_1clear(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  std::vector< bn_t * > *arg1 = (std::vector< bn_t * > *) 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bn_t * > **)&jarg1; 
  (arg1)->clear();
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_BigIntegerVec_1push_1back(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
  std::vector< bn_t * > *arg1 = (std::vector< bn_t * > *) 0 ;
  std::vector< bn_t * >::value_type *arg2 = 0 ;
  std::vector< bn_t * >::value_type temp2 = 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bn_t * > **)&jarg1; 
  temp2 = *(std::vector< bn_t * >::value_type *)&jarg2;
  arg2 = (std::vector< bn_t * >::value_type *)&temp2; 
  (arg1)->push_back((std::vector< bn_t * >::value_type const &)*arg2);
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_BigIntegerVec_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
  jlong jresult = 0 ;
  std::vector< bn_t * > *arg1 = (std::vector< bn_t * > *) 0 ;
  int arg2 ;
  std::vector< bn_t * >::value_type *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bn_t * > **)&jarg1; 
  arg2 = (int)jarg2; 
  try {
    result = (std::vector< bn_t * >::value_type *) &std_vector_Sl_bn_t_Sm__Sg__get((std::vector< bn_t * > const *)arg1,arg2);
  }
  catch(std::out_of_range &_e) {
    SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, (&_e)->what());
    return 0;
  }
  
  *(std::vector< bn_t * >::value_type *)&jresult = *result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_BigIntegerVec_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jlong jarg3) {
  jlong jresult = 0 ;
  std::vector< bn_t * > *arg1 = (std::vector< bn_t * > *) 0 ;
  int arg2 ;
  std::vector< bn_t * >::value_type *arg3 = 0 ;
  std::vector< bn_t * >::value_type temp3 = 0 ;
  std::vector< bn_t * >::value_type result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bn_t * > **)&jarg1; 
  arg2 = (int)jarg2; 
  temp3 = *(std::vector< bn_t * >::value_type *)&jarg3;
  arg3 = (std::vector< bn_t * >::value_type *)&temp3; 
  try {
    result = (std::vector< bn_t * >::value_type)std_vector_Sl_bn_t_Sm__Sg__set(arg1,arg2,(bn_t * &)*arg3);
  }
  catch(std::out_of_range &_e) {
    SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, (&_e)->what());
    return 0;
  }
  
  *(std::vector< bn_t * >::value_type *)&jresult = result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_org_dashj_bls_JNI_BigIntegerVec_1size(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jint jresult = 0 ;
  std::vector< bn_t * > *arg1 = (std::vector< bn_t * > *) 0 ;
  int32_t result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bn_t * > **)&jarg1; 
  result = (int32_t)std_vector_Sl_bn_t_Sm__Sg__size((std::vector< bn_t * > const *)arg1);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_BigIntegerVec_1removeRange(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3) {
  std::vector< bn_t * > *arg1 = (std::vector< bn_t * > *) 0 ;
  int32_t arg2 ;
  int32_t arg3 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bn_t * > **)&jarg1; 
  arg2 = (int32_t)jarg2; 
  arg3 = (int32_t)jarg3; 
  std_vector_Sl_bn_t_Sm__Sg__removeRange(arg1,arg2,arg3);
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_delete_1BigIntegerVec(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  std::vector< bn_t * > *arg1 = (std::vector< bn_t * > *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(std::vector< bn_t * > **)&jarg1; 
  delete arg1;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_new_1SignatureVector_1_1SWIG_10(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  std::vector< bls::Signature > *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (std::vector< bls::Signature > *)new std::vector< bls::Signature >();
  *(std::vector< bls::Signature > **)&jresult = result; 
  return jresult;
}

SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_new_1SignatureVector_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  std::vector< bls::Signature > *arg1 = 0 ;
  std::vector< bls::Signature > *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::Signature > **)&jarg1;
  if (!arg1) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< bls::Signature > const & reference is null");
    return 0;
  } 
  result = (std::vector< bls::Signature > *)new std::vector< bls::Signature >((std::vector< bls::Signature > const &)*arg1);
  *(std::vector< bls::Signature > **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_SignatureVector_1capacity(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  std::vector< bls::Signature > *arg1 = (std::vector< bls::Signature > *) 0 ;
  std::vector< bls::Signature >::size_type result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::Signature > **)&jarg1; 
  result = ((std::vector< bls::Signature > const *)arg1)->capacity();
  jresult = (jlong)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_SignatureVector_1reserve(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
  std::vector< bls::Signature > *arg1 = (std::vector< bls::Signature > *) 0 ;
  std::vector< bls::Signature >::size_type arg2 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::Signature > **)&jarg1; 
  arg2 = (std::vector< bls::Signature >::size_type)jarg2; 
  (arg1)->reserve(arg2);
}


SWIGEXPORT jboolean JNICALL Java_org_dashj_bls_JNI_SignatureVector_1isEmpty(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jboolean jresult = 0 ;
  std::vector< bls::Signature > *arg1 = (std::vector< bls::Signature > *) 0 ;
  bool result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::Signature > **)&jarg1; 
  result = (bool)((std::vector< bls::Signature > const *)arg1)->empty();
  jresult = (jboolean)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_SignatureVector_1clear(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  std::vector< bls::Signature > *arg1 = (std::vector< bls::Signature > *) 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::Signature > **)&jarg1; 
  (arg1)->clear();
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_SignatureVector_1push_1back(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  std::vector< bls::Signature > *arg1 = (std::vector< bls::Signature > *) 0 ;
  std::vector< bls::Signature >::value_type *arg2 = 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  (void)jarg2_;
  arg1 = *(std::vector< bls::Signature > **)&jarg1; 
  arg2 = *(std::vector< bls::Signature >::value_type **)&jarg2;
  if (!arg2) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< bls::Signature >::value_type const & reference is null");
    return ;
  } 
  (arg1)->push_back((std::vector< bls::Signature >::value_type const &)*arg2);
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_SignatureVector_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
  jlong jresult = 0 ;
  std::vector< bls::Signature > *arg1 = (std::vector< bls::Signature > *) 0 ;
  int arg2 ;
  std::vector< bls::Signature >::value_type *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::Signature > **)&jarg1; 
  arg2 = (int)jarg2; 
  try {
    result = (std::vector< bls::Signature >::value_type *) &std_vector_Sl_bls_Signature_Sg__get((std::vector< bls::Signature > const *)arg1,arg2);
  }
  catch(std::out_of_range &_e) {
    SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, (&_e)->what());
    return 0;
  }
  
  *(std::vector< bls::Signature >::value_type **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_SignatureVector_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jlong jarg3, jobject jarg3_) {
  jlong jresult = 0 ;
  std::vector< bls::Signature > *arg1 = (std::vector< bls::Signature > *) 0 ;
  int arg2 ;
  std::vector< bls::Signature >::value_type *arg3 = 0 ;
  SwigValueWrapper< bls::Signature > result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  (void)jarg3_;
  arg1 = *(std::vector< bls::Signature > **)&jarg1; 
  arg2 = (int)jarg2; 
  arg3 = *(std::vector< bls::Signature >::value_type **)&jarg3;
  if (!arg3) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< bls::Signature >::value_type const & reference is null");
    return 0;
  } 
  try {
    result = std_vector_Sl_bls_Signature_Sg__set(arg1,arg2,(bls::Signature const &)*arg3);
  }
  catch(std::out_of_range &_e) {
    SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, (&_e)->what());
    return 0;
  }
  
  *(std::vector< bls::Signature >::value_type **)&jresult = new std::vector< bls::Signature >::value_type((const std::vector< bls::Signature >::value_type &)result); 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_org_dashj_bls_JNI_SignatureVector_1size(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jint jresult = 0 ;
  std::vector< bls::Signature > *arg1 = (std::vector< bls::Signature > *) 0 ;
  int32_t result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::Signature > **)&jarg1; 
  result = (int32_t)std_vector_Sl_bls_Signature_Sg__size((std::vector< bls::Signature > const *)arg1);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_SignatureVector_1removeRange(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3) {
  std::vector< bls::Signature > *arg1 = (std::vector< bls::Signature > *) 0 ;
  int32_t arg2 ;
  int32_t arg3 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::Signature > **)&jarg1; 
  arg2 = (int32_t)jarg2; 
  arg3 = (int32_t)jarg3; 
  std_vector_Sl_bls_Signature_Sg__removeRange(arg1,arg2,arg3);
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_delete_1SignatureVector(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  std::vector< bls::Signature > *arg1 = (std::vector< bls::Signature > *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(std::vector< bls::Signature > **)&jarg1; 
  delete arg1;
}

SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_new_1InsecureSignatureVector_1_1SWIG_10(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  std::vector< bls::InsecureSignature > *result = 0 ;

  (void)jenv;
  (void)jcls;
  result = (std::vector< bls::InsecureSignature > *)new std::vector< bls::InsecureSignature >();
  *(std::vector< bls::InsecureSignature > **)&jresult = result;
  return jresult;
}

SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_new_1InsecureSignatureVector_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  std::vector< bls::InsecureSignature > *arg1 = 0 ;
  std::vector< bls::InsecureSignature > *result = 0 ;

  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::InsecureSignature > **)&jarg1;
  if (!arg1) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< bls::InsecureSignature > const & reference is null");
    return 0;
  }
  result = (std::vector< bls::InsecureSignature > *)new std::vector< bls::InsecureSignature >((std::vector< bls::InsecureSignature > const &)*arg1);
  *(std::vector< bls::InsecureSignature > **)&jresult = result;
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_InsecureSignatureVector_1capacity(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  std::vector< bls::InsecureSignature > *arg1 = (std::vector< bls::InsecureSignature > *) 0 ;
  std::vector< bls::InsecureSignature >::size_type result;

  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::InsecureSignature > **)&jarg1;
  result = ((std::vector< bls::InsecureSignature > const *)arg1)->capacity();
  jresult = (jlong)result;
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_InsecureSignatureVector_1reserve(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
  std::vector< bls::InsecureSignature > *arg1 = (std::vector< bls::InsecureSignature > *) 0 ;
  std::vector< bls::InsecureSignature >::size_type arg2 ;

  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::InsecureSignature > **)&jarg1;
  arg2 = (std::vector< bls::InsecureSignature >::size_type)jarg2;
  (arg1)->reserve(arg2);
}


SWIGEXPORT jboolean JNICALL Java_org_dashj_bls_JNI_InsecureSignatureVector_1isEmpty(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jboolean jresult = 0 ;
  std::vector< bls::InsecureSignature > *arg1 = (std::vector< bls::InsecureSignature > *) 0 ;
  bool result;

  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::InsecureSignature > **)&jarg1;
  result = (bool)((std::vector< bls::InsecureSignature > const *)arg1)->empty();
  jresult = (jboolean)result;
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_InsecureSignatureVector_1clear(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  std::vector< bls::InsecureSignature > *arg1 = (std::vector< bls::InsecureSignature > *) 0 ;

  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::InsecureSignature > **)&jarg1;
  (arg1)->clear();
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_InsecureSignatureVector_1push_1back(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  std::vector< bls::InsecureSignature > *arg1 = (std::vector< bls::InsecureSignature > *) 0 ;
  std::vector< bls::InsecureSignature >::value_type *arg2 = 0 ;

  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  (void)jarg2_;
  arg1 = *(std::vector< bls::InsecureSignature > **)&jarg1;
  arg2 = *(std::vector< bls::InsecureSignature >::value_type **)&jarg2;
  if (!arg2) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< bls::InsecureSignature >::value_type const & reference is null");
    return ;
  }
  (arg1)->push_back((std::vector< bls::InsecureSignature >::value_type const &)*arg2);
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_InsecureSignatureVector_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
  jlong jresult = 0 ;
  std::vector< bls::InsecureSignature > *arg1 = (std::vector< bls::InsecureSignature > *) 0 ;
  int arg2 ;
  std::vector< bls::InsecureSignature >::value_type *result = 0 ;

  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::InsecureSignature > **)&jarg1;
  arg2 = (int)jarg2;
  try {
    result = (std::vector< bls::InsecureSignature >::value_type *) &std_vector_Sl_bls_InsecureSignature_Sg__get((std::vector< bls::InsecureSignature > const *)arg1,arg2);
  }
  catch(std::out_of_range &_e) {
    SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, (&_e)->what());
    return 0;
  }

  *(std::vector< bls::InsecureSignature >::value_type **)&jresult = result;
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_InsecureSignatureVector_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jlong jarg3, jobject jarg3_) {
  jlong jresult = 0 ;
  std::vector< bls::InsecureSignature > *arg1 = (std::vector< bls::InsecureSignature > *) 0 ;
  int arg2 ;
  std::vector< bls::InsecureSignature >::value_type *arg3 = 0 ;
  SwigValueWrapper< bls::InsecureSignature > result;

  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  (void)jarg3_;
  arg1 = *(std::vector< bls::InsecureSignature > **)&jarg1;
  arg2 = (int)jarg2;
  arg3 = *(std::vector< bls::InsecureSignature >::value_type **)&jarg3;
  if (!arg3) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< bls::InsecureSignature >::value_type const & reference is null");
    return 0;
  }
  try {
    result = std_vector_Sl_bls_InsecureSignature_Sg__set(arg1,arg2,(bls::InsecureSignature const &)*arg3);
  }
  catch(std::out_of_range &_e) {
    SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, (&_e)->what());
    return 0;
  }

  *(std::vector< bls::InsecureSignature >::value_type **)&jresult = new std::vector< bls::InsecureSignature >::value_type((const std::vector< bls::InsecureSignature >::value_type &)result);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_org_dashj_bls_JNI_InsecureSignatureVector_1size(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jint jresult = 0 ;
  std::vector< bls::InsecureSignature > *arg1 = (std::vector< bls::InsecureSignature > *) 0 ;
  int32_t result;

  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::InsecureSignature > **)&jarg1;
  result = (int32_t)std_vector_Sl_bls_InsecureSignature_Sg__size((std::vector< bls::InsecureSignature > const *)arg1);
  jresult = (jint)result;
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_InsecureSignatureVector_1removeRange(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3) {
  std::vector< bls::InsecureSignature > *arg1 = (std::vector< bls::InsecureSignature > *) 0 ;
  int32_t arg2 ;
  int32_t arg3 ;

  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::InsecureSignature > **)&jarg1;
  arg2 = (int32_t)jarg2;
  arg3 = (int32_t)jarg3;
  std_vector_Sl_bls_InsecureSignature_Sg__removeRange(arg1,arg2,arg3);
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_delete_1InsecureSignatureVector(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  std::vector< bls::InsecureSignature > *arg1 = (std::vector< bls::InsecureSignature > *) 0 ;

  (void)jenv;
  (void)jcls;
  arg1 = *(std::vector< bls::InsecureSignature > **)&jarg1;
  delete arg1;
}

SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_new_1AggregationInfoVector_1_1SWIG_10(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  std::vector< bls::AggregationInfo > *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (std::vector< bls::AggregationInfo > *)new std::vector< bls::AggregationInfo >();
  *(std::vector< bls::AggregationInfo > **)&jresult = result; 
  return jresult;
}

SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_AggregationInfoVector_1capacity(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jlong jresult = 0 ;
  std::vector< bls::AggregationInfo > *arg1 = (std::vector< bls::AggregationInfo > *) 0 ;
  std::vector< bls::AggregationInfo >::size_type result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::AggregationInfo > **)&jarg1; 
  result = ((std::vector< bls::AggregationInfo > const *)arg1)->capacity();
  jresult = (jlong)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_AggregationInfoVector_1reserve(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
  std::vector< bls::AggregationInfo > *arg1 = (std::vector< bls::AggregationInfo > *) 0 ;
  std::vector< bls::AggregationInfo >::size_type arg2 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::AggregationInfo > **)&jarg1; 
  arg2 = (std::vector< bls::AggregationInfo >::size_type)jarg2; 
  (arg1)->reserve(arg2);
}


SWIGEXPORT jboolean JNICALL Java_org_dashj_bls_JNI_AggregationInfoVector_1isEmpty(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jboolean jresult = 0 ;
  std::vector< bls::AggregationInfo > *arg1 = (std::vector< bls::AggregationInfo > *) 0 ;
  bool result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::AggregationInfo > **)&jarg1; 
  result = (bool)((std::vector< bls::AggregationInfo > const *)arg1)->empty();
  jresult = (jboolean)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_AggregationInfoVector_1clear(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  std::vector< bls::AggregationInfo > *arg1 = (std::vector< bls::AggregationInfo > *) 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::AggregationInfo > **)&jarg1; 
  (arg1)->clear();
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_AggregationInfoVector_1push_1back(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  std::vector< bls::AggregationInfo > *arg1 = (std::vector< bls::AggregationInfo > *) 0 ;
  std::vector< bls::AggregationInfo >::value_type *arg2 = 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  (void)jarg2_;
  arg1 = *(std::vector< bls::AggregationInfo > **)&jarg1; 
  arg2 = *(std::vector< bls::AggregationInfo >::value_type **)&jarg2;
  if (!arg2) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< bls::AggregationInfo >::value_type const & reference is null");
    return ;
  } 
  (arg1)->push_back((std::vector< bls::AggregationInfo >::value_type const &)*arg2);
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_AggregationInfoVector_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
  jlong jresult = 0 ;
  std::vector< bls::AggregationInfo > *arg1 = (std::vector< bls::AggregationInfo > *) 0 ;
  int arg2 ;
  std::vector< bls::AggregationInfo >::value_type *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::AggregationInfo > **)&jarg1; 
  arg2 = (int)jarg2; 
  try {
    result = (std::vector< bls::AggregationInfo >::value_type *) &std_vector_Sl_bls_AggregationInfo_Sg__get((std::vector< bls::AggregationInfo > const *)arg1,arg2);
  }
  catch(std::out_of_range &_e) {
    SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, (&_e)->what());
    return 0;
  }
  
  *(std::vector< bls::AggregationInfo >::value_type **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_org_dashj_bls_JNI_AggregationInfoVector_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jlong jarg3, jobject jarg3_) {
  jlong jresult = 0 ;
  std::vector< bls::AggregationInfo > *arg1 = (std::vector< bls::AggregationInfo > *) 0 ;
  int arg2 ;
  std::vector< bls::AggregationInfo >::value_type *arg3 = 0 ;
  SwigValueWrapper< bls::AggregationInfo > result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  (void)jarg3_;
  arg1 = *(std::vector< bls::AggregationInfo > **)&jarg1; 
  arg2 = (int)jarg2; 
  arg3 = *(std::vector< bls::AggregationInfo >::value_type **)&jarg3;
  if (!arg3) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< bls::AggregationInfo >::value_type const & reference is null");
    return 0;
  } 
  try {
    result = std_vector_Sl_bls_AggregationInfo_Sg__set(arg1,arg2,(bls::AggregationInfo const &)*arg3);
  }
  catch(std::out_of_range &_e) {
    SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, (&_e)->what());
    return 0;
  }
  
  *(std::vector< bls::AggregationInfo >::value_type **)&jresult = new std::vector< bls::AggregationInfo >::value_type((const std::vector< bls::AggregationInfo >::value_type &)result); 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_org_dashj_bls_JNI_AggregationInfoVector_1size(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  jint jresult = 0 ;
  std::vector< bls::AggregationInfo > *arg1 = (std::vector< bls::AggregationInfo > *) 0 ;
  int32_t result;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::AggregationInfo > **)&jarg1; 
  result = (int32_t)std_vector_Sl_bls_AggregationInfo_Sg__size((std::vector< bls::AggregationInfo > const *)arg1);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_org_dashj_bls_JNI_AggregationInfoVector_1removeRange(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3) {
  std::vector< bls::AggregationInfo > *arg1 = (std::vector< bls::AggregationInfo > *) 0 ;
  int32_t arg2 ;
  int32_t arg3 ;
  
  (void)jenv;
  (void)jcls;
  (void)jarg1_;
  arg1 = *(std::vector< bls::AggregationInfo > **)&jarg1; 
  arg2 = (int32_t)jarg2; 
  arg3 = (int32_t)jarg3; 
  std_vector_Sl_bls_AggregationInfo_Sg__removeRange(arg1,arg2,arg3);
}


#ifdef __cplusplus
}
#endif

